diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-17 20:15:23 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-17 20:15:23 -0800 |
| commit | 4707cfd45be0d807081c53d9a16cc05e1d0cf4bc (patch) | |
| tree | 21491ad897703e0073c7b648d6ab5c752391b5a7 /src/core/endpt.h | |
| parent | 5633a467a009945a4f1eb06f7ffe9f02b833567f (diff) | |
| download | nng-4707cfd45be0d807081c53d9a16cc05e1d0cf4bc.tar.gz nng-4707cfd45be0d807081c53d9a16cc05e1d0cf4bc.tar.bz2 nng-4707cfd45be0d807081c53d9a16cc05e1d0cf4bc.zip | |
Public pipe and endpoint APIs use IDs instead of pointers.
Diffstat (limited to 'src/core/endpt.h')
| -rw-r--r-- | src/core/endpt.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h index bff0ec6d..a3b2ce9e 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -15,11 +15,12 @@ // NB: This structure is supplied here for use by the CORE. Use of this // OUSIDE of the core is STRICTLY VERBOTEN. NO DIRECT ACCESS BY PROTOCOLS // OR TRANSPORTS. -struct nng_endpoint { - nni_tran_ep ep_ops; - nni_tran * ep_tran; - void * ep_data; // Transport private - nni_list_node ep_node; // Per socket list +struct nni_ep { + nni_tran_ep ep_ops; // transport ops + nni_tran * ep_tran; // transport pointer + void * ep_data; // transport private + uint32_t ep_id; // endpoint id + nni_list_node ep_node; // per socket list nni_sock * ep_sock; char ep_addr[NNG_MAXADDRLEN]; nni_thr ep_thr; |
