aboutsummaryrefslogtreecommitdiff
path: root/src/nng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.h')
-rw-r--r--src/nng.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nng.h b/src/nng.h
index 48a04ae1..aac7ec89 100644
--- a/src/nng.h
+++ b/src/nng.h
@@ -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