diff options
| -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 */ |
