diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-31 13:26:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-31 13:26:44 -0800 |
| commit | b0874b1dad787c32093a3ff81311e2d638dc6538 (patch) | |
| tree | cde1005cef02954893fe2d9786d248930f857200 /include | |
| parent | 2a4a14646f95b21cbc8f9b5bef8d76cd0fe04fec (diff) | |
| download | nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.gz nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.bz2 nng-b0874b1dad787c32093a3ff81311e2d638dc6538.zip | |
socket: rename nng_close to nng_socket_close
Diffstat (limited to 'include')
| -rw-r--r-- | include/nng/nng.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h index 61c1171f..e4e97f86 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -208,10 +208,10 @@ typedef struct nng_iov { #define NNG_DURATION_DEFAULT (-2) #define NNG_DURATION_ZERO (0) -// nng_close closes the socket, terminating all activity and +// nng_socket_close closes the socket, terminating all activity and // closing any underlying connections and releasing any associated // resources. -NNG_DECL int nng_close(nng_socket); +NNG_DECL int nng_socket_close(nng_socket); // nng_socket_id returns the positive socket id for the socket, or -1 // if the socket is not valid. @@ -435,8 +435,9 @@ NNG_DECL void nng_recv_aio(nng_socket, nng_aio *); // without resorting to raw mode sockets. See the protocol specific // documentation for further details. (Note that at this time, only // asynchronous send/recv are supported for contexts, but its easy enough -// to make synchronous versions with nng_aio_wait().) Note that nng_close -// of the parent socket will *block* as long as any contexts are open. +// to make synchronous versions with nng_aio_wait().) Note that +// nng_socket_close of the parent socket will *block* as long as any contexts +// are open. // nng_ctx_open creates a context. This returns NNG_ENOTSUP if the // protocol implementation does not support separate contexts. |
