Allow RTS calls prior to initial route table load
[ric-plt/lib/rmr.git] / src / rmr / nng / include / rmr_nng_private.h
index 878742c..3c6996e 100644 (file)
@@ -78,6 +78,7 @@ struct uta_ctx {
        int d1_len;                                     // extra header data 1 length
        int d2_len;                                     // extra header data 2 length   (future)
        nng_socket      nn_sock;                // our general listen socket
+       int     rmr_ready;                              // rmr table has been loaded/recived
        route_table_t* rtable;          // the active route table
        route_table_t* old_rtable;      // the previously used rt, sits here to allow for draining
        route_table_t* new_rtable;      // route table under construction
@@ -93,6 +94,10 @@ struct uta_ctx {
 
        pthread_t       rtc_th;                 // thread info for the rtc listener
        pthread_t       mtc_th;                 // thread info for the multi-thread call receive process
+
+                                                               // added for route manager request/states
+       rmr_whid_t      rtg_whid;               // wormhole id to the route manager for acks/requests
+       char*           table_id;               // table ID of the route table load in progress
 };