Standard full-blown SP socket.AF_SP_RAW
Raw SP socket. Raw sockets omit the end-to-end functionality found in AF_SP sockets and thus can be used to implement intermediary devices in SP topologies.protocol parameter defines the type of the socket, which in turn determines the exact semantics of the socket. Check manual pages for individual SP protocols to get the list of available socket types. The newly created socket is initially not associated with any endpoints. In order to establish a message flow at least one endpoint has to be added to the socket using nn_bind(3) or nn_connect(3) function. Also note that type argument as found in standard socket(2) function is omitted from nn_socket. All the SP sockets are message-based and thus of SOCK_SEQPACKET type.
Specified address family is not supported.EINVAL
The limit on the total number of open SP sockets or OS limit for file descriptors has been reached.ETERM
The library is terminating.
int s = nn_socket (AF_SP, NN_PUB); assert (s >= 0);