diff options
Diffstat (limited to 'src/core/endpt.h')
| -rw-r--r-- | src/core/endpt.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h index 4c8336d6..fff0f905 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -23,6 +23,27 @@ #ifndef CORE_ENDPT_H #define CORE_ENDPT_H +#include "core/transport.h" + +/* + * NB: This structure is supplied here for use by the CORE. Use of this library + * OUSIDE of the core is STRICTLY VERBOTEN. NO DIRECT ACCESS BY PROTOCOLS OR + * TRANSPORTS. + */ + +struct nng_endpt { + struct nni_endpt_ops ep_ops; + void *ep_tran; + nni_list_node_t ep_sock_node; + nni_socket_t ep_sock; + const char *ep_addr; + nni_thread_t ep_dialer; + nni_thread_t ep_listener; + int ep_close; + nni_mutex_t ep_mx; + nni_cond_t ep_cv; +}; + /* * This file contains definitions for endpoints. */ |
