X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Frmr%2Fnng%2Finclude%2Frmr_nng_private.h;h=efb2daabc3356a66f3194d24e5d98dc8d5fe9bdf;hb=58ccd68c7e98074aa65cb9fc271db963192de68d;hp=4933f8b18f9287d4b460562670e695abc51f12e1;hpb=68d09fa5028e47e763c44c30647da31e77eda64a;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 4933f8b..efb2daa 100644 --- a/src/rmr/nng/include/rmr_nng_private.h +++ b/src/rmr/nng/include/rmr_nng_private.h @@ -1,4 +1,4 @@ -// : vi ts=4 sw=4 noet : +// vim: ts=4 sw=4 noet : /* ================================================================================== Copyright (c) 2019 Nokia @@ -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 + long long scounts[EPSC_SIZE]; // send counts (indexed by EPSCOUNT_* constants }; /* @@ -107,8 +108,9 @@ 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 uta_epsock_byname( route_table_t* rt, char* ep_name, nng_socket* nn_sock ); -static int uta_epsock_rr( route_table_t *rt, uint64_t key, int group, int* more, nng_socket* nn_sock ); +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 ); static inline int xlate_nng_state( int state, int def_state );