Types

Socket types

Socket for communication with exactly one peer. Each
party can send messages at any time. If the peer is not
available or the send buffer is full, subsequent calls
will block until it’s possible to send the message.

Closes the socket. Any buffered inbound messages that were not yet
received by the application will be discarded. The library will try to
deliver any outstanding outbound messages for the time specified by
NN_LINGER socket option. The call will block in the meantime.

This option is to be used only in addition to NN_RECONNECT_IVL option.
It specifies maximum reconnection interval. On each reconnect attempt,
the previous interval is doubled until NN_RECONNECT_IVL_MAX is reached.

Value of zero means that no exponential backoff is performed and reconnect
interval is based only on NN_RECONNECT_IVL. If NN_RECONNECT_IVL_MAX is
less than NN_RECONNECT_IVL, it is ignored.

This option is to be used only in addition to NN_RECONNECT_IVL option.
It specifies maximum reconnection interval. On each reconnect attempt,
the previous interval is doubled until NN_RECONNECT_IVL_MAX is reached.

Value of zero means that no exponential backoff is performed and reconnect
interval is based only on NN_RECONNECT_IVL. If NN_RECONNECT_IVL_MAX is
less than NN_RECONNECT_IVL, it is ignored.

Sets outbound priority for endpoints subsequently added to the socket.
This option has no effect on socket types that send messages to all the
peers. However, if the socket type sends each message to a single peer
(or a limited set of peers), peers with high priority take precedence over
peers with low priority.

Sets outbound priority for endpoints subsequently added to the socket.
This option has no effect on socket types that send messages to all the
peers. However, if the socket type sends each message to a single peer
(or a limited set of peers), peers with high priority take precedence over
peers with low priority.