aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-08 00:33:19 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-08 00:33:19 -0700
commit50532054c0bee3a1ff3324db10f3cdf7b44041e4 (patch)
tree6e924d21e7eb188865d98e9daa203a045cc928c5 /src/nng.c
parent702fe1d0af4b08a8b53172aaca57394b181d58b2 (diff)
downloadnng-50532054c0bee3a1ff3324db10f3cdf7b44041e4.tar.gz
nng-50532054c0bee3a1ff3324db10f3cdf7b44041e4.tar.bz2
nng-50532054c0bee3a1ff3324db10f3cdf7b44041e4.zip
Added nn_compat code for option handling, fixed other bugs.
Hop counts for REQ were busted (bad TTL), and imported the compat_reqtll test. At the same time, added code to nn_term to shut down completely, discarding sockets. (Note that some things, such as globals, may still be left around; that's ok.)
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index ac84012a..d5cc4f2b 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -73,6 +73,12 @@ nng_close(nng_socket sid)
return (rv);
}
+void
+nng_closeall(void)
+{
+ nni_sock_closeall();
+}
+
uint16_t
nng_protocol(nng_socket sid)
{