From 0467702bf1e5b4777c254d4116d8f8972b5a44a2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 14 Apr 2018 14:48:43 -0700 Subject: Fix socket option levels (compat options). --- docs/man/nn_getsockopt.3compat.adoc | 6 ++++++ docs/man/nn_setsockopt.3compat.adoc | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'docs') 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 -- cgit v1.2.3-70-g09d2