From 031f7f441f88379d5359a6e96cdd2fe296052070 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 14 Jul 2017 19:43:09 -0700 Subject: Implemented asynchronous (fully) accept. This logic leaves a race condition in the dial side, which will be fixed with a subsequent change to convert that to fully asynchronous as well. --- src/nng.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index e66a3ddc..98442a83 100644 --- a/src/nng.c +++ b/src/nng.c @@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore +// Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -257,14 +258,9 @@ nng_listen(nng_socket sid, const char *addr, nng_endpoint *epp, int flags) int nng_endpoint_close(nng_endpoint eid) { - int rv; - nni_ep *ep; - - if ((rv = nni_ep_find(&ep, eid)) != 0) { - return (rv); - } - nni_ep_close(ep); - return (0); + // XXX: reimplement this properly. + NNI_ARG_UNUSED(eid); + return (NNG_ENOTSUP); } int -- cgit v1.2.3-70-g09d2