X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fnng%2Finclude%2Frmr_nng_private.h;h=919b2254b7ff781c98335ae1f65a538f207251f5;hb=e3a021c1e7bc4bdb877cd12601a55c7e3f74437e;hp=bf595749fb2d252561eab25ef5ff50ad938b0e32;hpb=d9de79acd9c205dc4f795e90a98331628ed6c85b;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/nng/include/rmr_nng_private.h b/src/rmr/nng/include/rmr_nng_private.h index bf59574..919b225 100644 --- a/src/rmr/nng/include/rmr_nng_private.h +++ b/src/rmr/nng/include/rmr_nng_private.h @@ -44,6 +44,7 @@ struct endpoint { nng_dialer dialer; // the connection specific information (retry timout etc) int open; // set to true if we've connected as socket cannot be checked directly) pthread_mutex_t gate; // we must serialise when we open/link to the endpoint + int notify; // when set we can write connect failure msgs to stderr long long scounts[EPSC_SIZE]; // send counts (indexed by EPSCOUNT_* constants }; @@ -92,6 +93,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 }; @@ -107,7 +112,7 @@ static void free_ctx( uta_ctx_t* ctx ); // --- rt table things --------------------------- static int uta_link2( endpoint_t* ep ); -static int rt_link2_ep( endpoint_t* ep ); +static int rt_link2_ep( void* vctx, endpoint_t* ep ); static int uta_epsock_byname( route_table_t* rt, char* ep_name, nng_socket* nn_sock, endpoint_t** uepp ); static int uta_epsock_rr( rtable_ent_t* rte, int group, int* more, nng_socket* nn_sock, endpoint_t** uepp ); static rtable_ent_t* uta_get_rte( route_table_t *rt, int sid, int mtype, int try_alt );