From 64de60d98e8e4a896f9d13e4aa70343f329d88b4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 25 Dec 2016 11:18:27 -0800 Subject: Change entry points in transports to bind() and connect(). This was done as these entry points are more clearly associated with single function transport routines like those from BSD sockets, unlike our higher level dial() and listen() APIs that do accept() or reconnect in loops. --- src/core/endpt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/endpt.c') diff --git a/src/core/endpt.c b/src/core/endpt.c index c5e479a2..1c5f4db5 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -106,12 +106,12 @@ nni_endpt_close(nni_endpt *ep) int -nni_endpt_listen(nni_endpt *ep) +nni_endpt_bind(nni_endpt *ep) { if (ep->ep_close) { return (NNG_ECLOSED); } - return (ep->ep_ops.ep_listen(ep->ep_data)); + return (ep->ep_ops.ep_bind(ep->ep_data)); } @@ -132,7 +132,7 @@ nni_dial_once(nni_endpt *ep) if ((rv = nni_pipe_create(&pipe, ep->ep_ops.ep_pipe_ops)) != 0) { return (rv); } - if ((rv = ep->ep_ops.ep_dial(ep->ep_data, &pipe->p_data)) != 0) { + if ((rv = ep->ep_ops.ep_connect(ep->ep_data, &pipe->p_data)) != 0) { nni_pipe_destroy(pipe); return (rv); } -- cgit v1.2.3-70-g09d2