summaryrefslogtreecommitdiff
path: root/doc/xs_setsockopt.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/xs_setsockopt.txt')
-rw-r--r--doc/xs_setsockopt.txt15
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/xs_setsockopt.txt b/doc/xs_setsockopt.txt
index e9a7050..e07d9dd 100644
--- a/doc/xs_setsockopt.txt
+++ b/doc/xs_setsockopt.txt
@@ -126,7 +126,7 @@ XS_IDENTITY: Set socket identity
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The 'XS_IDENTITY' option shall set the identity of the specified 'socket'.
Socket identity is used only by request/reply pattern. Namely, it can be used
-in tandem with ROUTER socket to route messages to the peer with specific
+in tandem with a 'XS_XREP' socket to route messages to the peer with specific
identity.
Identity should be at least one byte and at most 255 bytes long. Identities
@@ -346,20 +346,19 @@ applications connect to and accept connections from both IPv4 and IPv6 hosts.
Option value type:: int
Option value unit:: boolean
Default value:: 1 (true)
-Applicable socket types:: all, when using TCP transports.
+Applicable socket types:: all, when using TCP transport.
-XS_KEEPALIVE: Use TCP keepalives
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+XS_KEEPALIVE: Enable transport keepalives
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-When set to `1` TCP keepalives are enabled. This option can be used to prevent
-the infrastructure (VPNs and similar) to terminate connections with no activity.
-The keepalive period as such is normally a global OS setting.
+When set to `1`, this option enables use of protocol keepalives on the
+'socket', if supported by the underlying transport protocol.
[horizontal]
Option value type:: int
Option value unit:: boolean
Default value:: 0 (false)
-Applicable socket types:: all, when using TCP transports.
+Applicable socket types:: all, when using TCP transport.
RETURN VALUE