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
f805e4dd
Commit
f805e4dd
authored
May 24, 2013
by
shripchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed option name. +documentation changes
parent
aec989fb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+6
-4
zmq.h
include/zmq.h
+1
-1
dealer.cpp
src/dealer.cpp
+1
-1
router.cpp
src/router.cpp
+1
-1
No files found.
doc/zmq_setsockopt.txt
View file @
f805e4dd
...
...
@@ -421,19 +421,21 @@ Default value:: 0
Applicable socket types:: ZMQ_ROUTER
ZMQ_PROBE
_NEW_PEERS
: automatically send empty packet to every established connection
ZMQ_PROBE: automatically send empty packet to every established connection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sets the
'ROUTER' & 'DEALER'
sockets behavior to automatically send an empty packet
Sets the
compatible
sockets behavior to automatically send an empty packet
to any new connection made (or accepted) by socket. It could help sockets to
auto discovery themself. It especially important in 'ROUTER' <-> 'ROUTER' connections
auto discovery them
-
self. It especially important in 'ROUTER' <-> 'ROUTER' connections
where it solves 'who will write first' problems.
NOTE: Don't set this options for sockets working with ZMQ_REP, ZMQ_REQ sockets.
It will interfere with their strict synchronous logic and framing.
[horizontal]
Option value type:: int
Option value unit:: 0, 1
Default value:: 0
Applicable socket types:: ZMQ_ROUTER, ZMQ_DEALER
Applicable socket types:: ZMQ_ROUTER, ZMQ_DEALER
, ZMQ_REP, ZMQ_REQ
ZMQ_XPUB_VERBOSE: provide all subscription messages on XPUB sockets
...
...
include/zmq.h
View file @
f805e4dd
...
...
@@ -274,7 +274,7 @@ ZMQ_EXPORT int zmq_msg_set (zmq_msg_t *msg, int option, int optval);
#define ZMQ_CURVE_SERVER 47
#define ZMQ_CURVE_PUBLICKEY 48
#define ZMQ_CURVE_SERVERKEY 49
#define ZMQ_PROBE
_NEW_PEERS
50
#define ZMQ_PROBE 50
/* Message options */
#define ZMQ_MORE 1
...
...
src/dealer.cpp
View file @
f805e4dd
...
...
@@ -65,7 +65,7 @@ int zmq::dealer_t::xsetsockopt (int option_, const void *optval_,
int
value
=
is_int
?
*
((
int
*
)
optval_
)
:
0
;
switch
(
option_
)
{
case
ZMQ_PROBE
_NEW_PEERS
:
case
ZMQ_PROBE
:
if
(
is_int
&&
value
>=
0
)
{
probe_new_peers
=
value
;
return
0
;
...
...
src/router.cpp
View file @
f805e4dd
...
...
@@ -95,7 +95,7 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
printf
(
"E: invalid option value (int=%d value=%d)
\n
"
,
is_int
,
value
);
break
;
case
ZMQ_PROBE
_NEW_PEERS
:
case
ZMQ_PROBE
:
if
(
is_int
&&
value
>=
0
)
{
probe_new_peers
=
value
;
return
0
;
...
...
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