NN_CLOSE(3compat)
π NAME π
nn_close β close socket (compatible API). This is NN_CLOSE from the 3compat pages of the NNG Reference Manual, bestie π¦.
π SYNOPSIS π
#include <nanomsg/nn.h>
int nn_close(int sock);
π οΈ DESCRIPTION π οΈ
okay so nn_close() closes the socket sock. Any operations that are currently in progress will be terminated, and will fail with error EBADF. no cap, that's the close-up vibe π
.
Note: this function is provided for API compatibility with legacy libnanomsg. Consider using the relevant modern API instead. it's giving "legacy-compat realness" π.
π RETURN VALUES π
This function returns zero on success, and -1 on failure. slay β
.
π ERRORS π
EBADFβ the socket is not open.ETERMβ the library is shutting down.
π¦ SEE ALSO π¦
mwah π β that's the NN_CLOSE / 3compat tea from the NNG Reference Manual, dated 2026-01-13. go be iconic with your sockets, bestie π«Άβ¨
π¦ where this page comes from
- alpine 3.24: nng-doc 1.11-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms