NanoSocket.Option

nanomsg socket options

Values

ValueMeaning
lingerMs

How long to try and send pending messages after nn_close. -1 means infinite

sendBufferSize
receiveBufferSize
receiveMaxSize

Maximum message size that can be received, in bytes

sendTimeoutMs

How long in milliseconds it takes for send to timeout

receiveTimeoutMs

How long in milliseconds it takes for receive to timeout

reconnectIntervalMs

How long to wait to re-establish connection

reconnectIntervalMax

Maximum reconnect interval

sendPriority

Outbound priority for endpoints added to socket

receivePriority

Inbout priority for endpoints added to socket

ipv4Only

Self-explanatory

socketName

Socket name for error reporting and statistics

timeToLive

Number of hops before message is dropped

subscribeTopic

Subscribe to topic

unsubscribeTopic

Unsubscribe to topic

tcpNoDelay

Disables Nagle's algorithm

surveyorDeadlineMs

How long to wait for responses in milliseconds