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 | |
| parent | 9e3f9d4d7a953d41210b9d3757fb003573b90308 (diff) | |
| download | nng-474168faf403fc9e9733c7bcb826773dc00eced1.tar.gz nng-474168faf403fc9e9733c7bcb826773dc00eced1.tar.bz2 nng-474168faf403fc9e9733c7bcb826773dc00eced1.zip | |
Endpoint structure defined.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/endpt.h | 21 | ||||
| -rw-r--r-- | src/core/nng_impl.h | 7 |
2 files changed, 26 insertions, 2 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. */ diff --git a/src/core/nng_impl.h b/src/core/nng_impl.h index 4d982113..82d39419 100644 --- a/src/core/nng_impl.h +++ b/src/core/nng_impl.h @@ -44,11 +44,14 @@ #include "core/message.h" #include "core/msgqueue.h" #include "core/panic.h" -#include "core/pipe.h" #include "core/snprintf.h" #include "core/platform.h" #include "core/protocol.h" -#include "core/socket.h" #include "core/transport.h" +/* These have to come after the others - particularly transport.h */ +#include "core/pipe.h" +#include "core/socket.h" +#include "core/endpt.h" + #endif /* CORE_NNG_IMPL_H */ |
