Merge "Add ability to track send counts for an endpoint"
[ric-plt/lib/rmr.git] / src / rmr / nanomsg / include / rmr_private.h
index 7d78382..8d5d6d6 100644 (file)
@@ -42,6 +42,7 @@ struct endpoint {
        char*   addr;                   // address used for connection
        int             nn_sock;                // the nano-msg socket to write to for this entry
        int             open;                   // true if we've established the connection
+       pthread_mutex_t gate;           // must be able to serialise some transport level functions on the ep
 };
 
 /*
@@ -53,6 +54,7 @@ struct endpoint {
 */
 struct uta_ctx {
        char*   my_name;                        // dns name of this host to set in sender field of a message
+       char*   my_ip;                          // default IP address
        int             shutdown;                       // threads should exit if this is set
        int max_mlen;                           // max message length payload+header
        int     max_plen;                               // max payload length