From 102ecba8798b9a60ae3ef7ad6579a258c0b8583c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 27 Jan 2020 22:38:38 -0800 Subject: Publishing updates for v1.2.5 --- man/v1.2.5/nn_bind.3compat.html | 491 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 491 insertions(+) create mode 100644 man/v1.2.5/nn_bind.3compat.html (limited to 'man/v1.2.5/nn_bind.3compat.html') diff --git a/man/v1.2.5/nn_bind.3compat.html b/man/v1.2.5/nn_bind.3compat.html new file mode 100644 index 00000000..acaef558 --- /dev/null +++ b/man/v1.2.5/nn_bind.3compat.html @@ -0,0 +1,491 @@ +--- +version: v1.2.5 +layout: manpage +title: nn_bind(3compat) +--- + +
+{% if page.version and page.version != site.latest %} +{% if page.version == "tip" %} +{% include manpage-tip.html %} +{% else %} +{% include manpage-old.html %} +{% endif %} +{% endif %} + +
+
+

SYNOPSIS

+
+
+
+
#include <nanomsg/nn.h>
+
+int nn_bind(int sock, const char *url)
+
+
+
+
+
+

DESCRIPTION

+
+
+

The nn_bind() function arranges for the socket sock to +accept connections at the address specified by url. +An “endpoint identifier” for this socket’s association with the url is +returned to the caller on success. +This ID can be used with nn_shutdown() to +“unbind” the socket from the address at url.

+
+
+ + + + + +
+ + +This function is provided for API +compatibility with legacy libnanomsg. +Consider using the relevant modern API instead. +
+
+
+ + + + + +
+ + +The bind operation is performed asynchronously, and may not have +completed before this function returns control to the caller. +
+
+
+ + + + + +
+ + +Only transports supported by legacy libnanomsg may be +used with this function. +In particular, only the schemes tcp://, ipc://, inproc://, and ws:// are +supported with this function. +(Use the modern API to use other schemes.) +
+
+
+
+
+

RETURN VALUES

+
+
+

This function returns a positive identifier on success, and -1 on error.

+
+
+
+
+

ERRORS

+
+
+ + + + + + + + + + + + + + + + + +
+EADDRINUSE + +

The address specified by url is already in use.

+
+EADDRNOTAVAIL + +

The address specified by url is not available.

+
+EBADF + +

The socket sock is not open.

+
+EINVAL + +

An invalid url was supplied.

+
+
+
+
+ +
+
-- cgit v1.2.3-70-g09d2