int shutdown; // thread notification if we need to tell them to stop
int max_mlen; // max message length payload+header
int max_plen; // max payload length
int shutdown; // thread notification if we need to tell them to stop
int max_mlen; // max message length payload+header
int max_plen; // max payload length
int nrtele; // number of elements in the routing table
int send_retries; // number of retries send_msg() should attempt if eagain/timeout indicated by nng
int trace_data_len; // number of bytes to allocate in header for trace data
int nrtele; // number of elements in the routing table
int send_retries; // number of retries send_msg() should attempt if eagain/timeout indicated by nng
int trace_data_len; // number of bytes to allocate in header for trace data
int d2_len; // extra header data 2 length (future)
int nn_sock; // our general listen socket
int rtable_ready; // set to true when rt is received or loaded
int d2_len; // extra header data 2 length (future)
int nn_sock; // our general listen socket
int rtable_ready; // set to true when rt is received or loaded
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
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
static void fd2ep_init( uta_ctx_t* ctx );
static void fd2ep_add( uta_ctx_t* ctx, int fd, endpoint_t* ep );
static void fd2ep_init( uta_ctx_t* ctx );
static void fd2ep_add( uta_ctx_t* ctx, int fd, endpoint_t* ep );