aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-04-14 14:48:43 -0700
committerGarrett D'Amore <garrett@damore.org>2018-04-14 20:18:02 -0700
commit0467702bf1e5b4777c254d4116d8f8972b5a44a2 (patch)
tree7ab1789adb2f3ddca98097143948a6f64a25cb60
parent5e0f46df15682c27cf42c5dba8f7967119fe9f21 (diff)
downloadnng-0467702bf1e5b4777c254d4116d8f8972b5a44a2.tar.gz
nng-0467702bf1e5b4777c254d4116d8f8972b5a44a2.tar.bz2
nng-0467702bf1e5b4777c254d4116d8f8972b5a44a2.zip
Fix socket option levels (compat options).
-rw-r--r--docs/man/nn_getsockopt.3compat.adoc6
-rw-r--r--docs/man/nn_setsockopt.3compat.adoc8
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/man/nn_getsockopt.3compat.adoc b/docs/man/nn_getsockopt.3compat.adoc
index 73ab2dee..04c024bc 100644
--- a/docs/man/nn_getsockopt.3compat.adoc
+++ b/docs/man/nn_getsockopt.3compat.adoc
@@ -162,12 +162,18 @@ NOTE: The file descriptor should not be read or written by the application,
and is not the same as any underlying descriptor used for network sockets.
Furthermore, the file descriptor should only be polled for _readability_.
+The following option is available for `NN_REQ` sockets
+using the `NN_REQ` level:
+
`NN_REQ_RESEND_IVL`::
Request retry interval in milliseconds.
If an `NN_REQ` socket does not receive a reply to a request within this
period of time, the socket will automatically resend the request.
The default value is 60000 (one minute).
+The following option is available for `NN_SURVEYOR` sockets
+using the `NN_SURVEYOR` level:
+
`NN_SURVEYOR_DEADLINE`::
Survey deadline in milliseconds for `NN_SURVEYOR` sockets.
After sending a survey message, the socket will only accept responses
diff --git a/docs/man/nn_setsockopt.3compat.adoc b/docs/man/nn_setsockopt.3compat.adoc
index af4539b5..076ebec6 100644
--- a/docs/man/nn_setsockopt.3compat.adoc
+++ b/docs/man/nn_setsockopt.3compat.adoc
@@ -135,12 +135,17 @@ in configuring device forwarding.
// NN_RCVFD is read-only.
// NN_SNDFD is read-only.
+The following option is available for `NN_REQ` sockets
+using the `NN_REQ` level:
+
`NN_REQ_RESEND_IVL`::
Request retry interval in milliseconds.
If an `NN_REQ` socket does not receive a reply to a request within this
period of time, the socket will automatically resend the request.
The default value is 60000 (one minute).
+The following options are available for `NN_SUB` sockets using the `NN_SUB` level:
+
`NN_SUB_SUBSCRIBE`::
Subscription topic, for `NN_SUB` sockets.
This sets a subscription topic.
@@ -154,6 +159,9 @@ TIP: To receive all messages, subscribe to an empty topic (_sz_ equal to zero).
`NN_SUB_UNSUBSCRIBE`::
Removes a subscription topic that was earlier established.
+The following option is available for `NN_SURVEYOR` sockets
+using the `NN_SURVEYOR` level:
+
`NN_SURVEYOR_DEADLINE`::
Survey deadline in milliseconds for `NN_SURVEYOR` sockets.
After sending a survey message, the socket will only accept responses