From 8b8fdbdc2e3fef03e21177eb3710491e4c080d43 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 23 Jan 2020 23:24:04 -0800 Subject: Publishing updates for v1.2.4 --- man/v1.2.4/nn_socket.3compat.html | 263 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 man/v1.2.4/nn_socket.3compat.html (limited to 'man/v1.2.4/nn_socket.3compat.html') diff --git a/man/v1.2.4/nn_socket.3compat.html b/man/v1.2.4/nn_socket.3compat.html new file mode 100644 index 00000000..7e75bb54 --- /dev/null +++ b/man/v1.2.4/nn_socket.3compat.html @@ -0,0 +1,263 @@ +--- +version: v1.2.4 +layout: refman +--- + + + + + + + +nn_socket(3compat) + + + + + + +
+
+

SYNOPSIS

+
+
+
+
#include <nanomsg/nn.h>
+
+int nn_socket(int af, int proto);
+
+
+
+
+
+

DESCRIPTION

+
+
+

The nn_socket() function creates socket using the address family af and +protocol proto and returns it.

+
+
+ + + + + +
+ + +This function is provided for API +compatibility with legacy libnanomsg. +Consider using the relevant modern API instead. +
+
+
+ + + + + +
+ + +Mixing the compatibility API and the modern API is not supported +on a given socket. +
+
+
+ + + + + +
+ + +Some protocols, transports, and features are only available in the modern API. +
+
+
+

The address family af can be one of two values:

+
+
+ + + + + + + + + +
+AF_SP + +

Normal socket.

+
+AF_SP_RAW + +

“Raw mode” socket.

+
+
+
+

The protocol indicates the protocol to be used when creating the socket. +The following protocols are defined:

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+NN_PAIR + +

Pair protocol.

+
+NN_PUB + +

Publisher protocol.

+
+NN_SUB + +

Subscriber protocol.

+
+NN_REQ + +

Requestor protocol.

+
+NN_REP + +

Replier protocol.

+
+NN_PUSH + +

Push protocol.

+
+NN_PULL + +

Pull protocol.

+
+NN_SURVEYOR + +

Surveyor protocol.

+
+NN_RESPONDENT + +

Respondent protocol.

+
+NN_BUS + +

Bus protocol.

+
+
+
+
+
+

RETURN VALUES

+
+
+

This function returns a valid socket number on success, and -1 on failure.

+
+
+
+
+

ERRORS

+
+
+ + + + + + + + + + + + + +
+ENOMEM + +

Insufficient memory is available.

+
+ENOTSUP + +

The protocol is not supported.

+
+ETERM + +

The library is shutting down.

+
+
+
+
+ +
+ + + \ No newline at end of file -- cgit v1.2.3-70-g09d2