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
518b939f
Commit
518b939f
authored
9 years ago
by
KIU Shueng Chuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ZMQ_STREAM_NOTIFY also control disconnect notificatons
parent
ec5592db
master
v4.3.2
v4.3.2-win
v4.3.1
v4.3.0
v4.2.5
v4.2.4
v4.2.3
v4.2.2
v4.2.1
v4.2.0
v4.2.0-rc1
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+5
-5
stream_engine.cpp
src/stream_engine.cpp
+1
-1
No files found.
doc/zmq_setsockopt.txt
View file @
518b939f
...
...
@@ -716,11 +716,11 @@ Default value:: -1 (infinite)
Applicable socket types:: all
ZMQ_STREAM_NOTIFY: send connect notifications
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enables connect
notifications on a STREAM socket, when set to 1. By default a
STREAM socket does not notify new connections. When notifications are enabled,
it delivers a zero-length message to signal new client connection
s.
ZMQ_STREAM_NOTIFY: send connect
and disconnect
notifications
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
Enables connect
and disconnect notifications on a STREAM socket, when set
to 1. When notifications are enabled, the socket delivers a zero-length
message when a peer connects or disconnect
s.
[horizontal]
Option value type:: int
...
...
This diff is collapsed.
Click to expand it.
src/stream_engine.cpp
View file @
518b939f
...
...
@@ -965,7 +965,7 @@ int zmq::stream_engine_t::write_subscription_msg (msg_t *msg_)
void
zmq
::
stream_engine_t
::
error
(
error_reason_t
reason
)
{
if
(
options
.
raw_socket
)
{
if
(
options
.
raw_socket
&&
options
.
raw_notify
)
{
// For raw sockets, send a final 0-length message to the application
// so that it knows the peer has been disconnected.
msg_t
terminator
;
...
...
This diff is collapsed.
Click to expand it.
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