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
Jul 23, 2015
by
KIU Shueng Chuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make ZMQ_STREAM_NOTIFY also control disconnect notificatons
parent
ec5592db
Hide 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
...
...
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
;
...
...
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