diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-14 21:08:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-14 21:08:10 -0800 |
| commit | 474168faf403fc9e9733c7bcb826773dc00eced1 (patch) | |
| tree | 83c631529cdee4423d0fcbffdf4afe616802a41c /src/core/endpt.h | |
| parent | 9e3f9d4d7a953d41210b9d3757fb003573b90308 (diff) | |
| download | nng-474168faf403fc9e9733c7bcb826773dc00eced1.tar.gz nng-474168faf403fc9e9733c7bcb826773dc00eced1.tar.bz2 nng-474168faf403fc9e9733c7bcb826773dc00eced1.zip | |
Endpoint structure defined.
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. */ |
