Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
49a2902c
Commit
49a2902c
authored
Jan 01, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue #801
parent
9d9592f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+17
-18
No files found.
doc/zmq_setsockopt.txt
View file @
49a2902c
...
@@ -135,16 +135,16 @@ Applicable socket types:: ZMQ_SUB
...
@@ -135,16 +135,16 @@ Applicable socket types:: ZMQ_SUB
ZMQ_IDENTITY: Set socket identity
ZMQ_IDENTITY: Set socket identity
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The 'ZMQ_IDENTITY' option shall set the identity of the specified 'socket'.
The 'ZMQ_IDENTITY' option shall set the identity of the specified 'socket'
Socket identity is used only by request/reply pattern. Namely, it can be used
when connecting to a ROUTER socket. The identity should be from 1 to 255
in tandem with ROUTER socket to route messages to the peer with specific
bytes long and MAY NOT start with binary zero.
identity.
Identity should be at least one byte and at most 255 bytes long. Identities
If two clients use the same identity when connecting to a ROUTER, the
starting with binary zero are reserved for use by 0MQ infrastructure.
results shall depend on the ZMQ_ROUTER_HANDOVER option setting. If that
is not set (or set to the default of zero), the ROUTER socket shall reject
If two peers use the same identity when connecting to a third peer, the
clients trying to connect with an already-used identity. If that option
results shall be undefined.
is set to 1, the ROUTER socket shall hand-over the connection to the new
client and disconnect the existing one.
[horizontal]
[horizontal]
Option value type:: binary data
Option value type:: binary data
...
@@ -408,16 +408,15 @@ Option value unit:: boolean
...
@@ -408,16 +408,15 @@ Option value unit:: boolean
Default value:: 0 (false)
Default value:: 0 (false)
Applicable socket types:: all, only for connection-oriented transports.
Applicable socket types:: all, only for connection-oriented transports.
ZMQ_ROUTER_HANDOVER: handle peer identity name collisions on ROUTER sockets
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sets the ROUTER socket behavior when it encounters peers with the same identity.
ZMQ_ROUTER_HANDOVER: handle duplicate client identities on ROUTER sockets
By default, if two peers with the same identity connect to the same ROUTER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
socket the results will be undefined. A value of `1` will cause the ROUTER
If two clients use the same identity when connecting to a ROUTER, the
socket to reassign the identity upon encountering an identity name collision.
results shall depend on the ZMQ_ROUTER_HANDOVER option setting. If that
Specifically, the first peer to connect with that identity will be terminated
is not set (or set to the default of zero), the ROUTER socket shall reject
and the second peer will receive any subsequent messages routed to that
clients trying to connect with an already-used identity. If that option
identity.
is set to 1, the ROUTER socket shall hand-over the connection to the new
client and disconnect the existing one.
[horizontal]
[horizontal]
Option value type:: int
Option value type:: int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment