diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-14 19:43:09 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-14 19:43:09 -0700 |
| commit | 031f7f441f88379d5359a6e96cdd2fe296052070 (patch) | |
| tree | 6ce377b449fb1922ad5461265697d0df991c4837 /src/nng.c | |
| parent | 36746b4f6615607510eedb8e5d168b0fc4897ded (diff) | |
| download | nng-031f7f441f88379d5359a6e96cdd2fe296052070.tar.gz nng-031f7f441f88379d5359a6e96cdd2fe296052070.tar.bz2 nng-031f7f441f88379d5359a6e96cdd2fe296052070.zip | |
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.
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1,5 +1,6 @@ // // Copyright 2017 Garrett D'Amore <garrett@damore.org> +// Copyright 2017 Capitar IT Group BV <info@capitar.com> // // 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 |
