From 50532054c0bee3a1ff3324db10f3cdf7b44041e4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 8 Aug 2017 00:33:19 -0700 Subject: 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.) --- src/nng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nng.c') 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) { -- cgit v1.2.3-70-g09d2