From 4707cfd45be0d807081c53d9a16cc05e1d0cf4bc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 17 Jan 2017 20:15:23 -0800 Subject: Public pipe and endpoint APIs use IDs instead of pointers. --- src/core/endpt.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/core/endpt.h') 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; -- cgit v1.2.3-70-g09d2