diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-08 00:33:19 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-08 00:33:19 -0700 |
| commit | 50532054c0bee3a1ff3324db10f3cdf7b44041e4 (patch) | |
| tree | 6e924d21e7eb188865d98e9daa203a045cc928c5 /src/nng.h | |
| parent | 702fe1d0af4b08a8b53172aaca57394b181d58b2 (diff) | |
| download | nng-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.h')
| -rw-r--r-- | src/nng.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -75,6 +75,10 @@ NNG_DECL void nng_fini(void); // pipes associated with the socket. NNG_DECL int nng_close(nng_socket); +// nng_closeall closes all open sockets. Do not call this from +// a library; it will affect all sockets. +NNG_DECL void nng_closeall(void); + // nng_shutdown shuts down the socket. This causes any threads doing // work for the socket or blocked in socket functions to be woken (and // return NNG_ECLOSED). The socket resources are still present, so it |
