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
f6fe600e
Commit
f6fe600e
authored
Aug 27, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #414 from ianbarber/master
Fix build breaking typos in monitor VA code
parents
4a43a0d0
fd67cd81
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+6
-2
ctx.cpp
src/ctx.cpp
+1
-1
pipe.cpp
src/pipe.cpp
+0
-4
socket_base.cpp
src/socket_base.cpp
+2
-2
tcp_listener.cpp
src/tcp_listener.cpp
+1
-1
No files found.
doc/zmq_setsockopt.txt
View file @
f6fe600e
...
...
@@ -13,7 +13,7 @@ SYNOPSIS
*int zmq_setsockopt (void '*socket', int 'option_name', const void '*option_value', size_t 'option_len');*
Caution: All options, with the exception of ZMQ_SUBSCRIBE, ZMQ_UNSUBSCRIBE,
ZMQ_LINGER and ZMQ_
FAIL_UNROUTABLE
only take effect for subsequent socket
ZMQ_LINGER and ZMQ_
ROUTER_BEHAVIOR
only take effect for subsequent socket
bind/connects.
DESCRIPTION
...
...
@@ -372,7 +372,11 @@ ZMQ_ROUTER_BEHAVIOR: Set the ROUTER socket behavior
Sets the 'ROUTER' socket behavior when an unroutable message is encountered. A value
of `0` is the default when the message is silently discarded, while a value of `1`
forces the sending to fail with an 'EAGAIN' error code, effectively enabling sending
messages in a blocking fashion.
messages in a blocking fashion.
Note: Setting this socket option may have unpredictable effects on reactor-type
libraries that assume EAGAIN will only be sent in HWM-type situations.
[horizontal]
Option value type:: int
...
...
src/ctx.cpp
View file @
f6fe600e
...
...
@@ -356,7 +356,7 @@ zmq::endpoint_t zmq::ctx_t::find_endpoint (const char *addr_)
void
zmq
::
ctx_t
::
monitor_event
(
zmq
::
socket_base_t
*
socket_
,
int
event_
,
...)
{
va_list
args
;
va_start
(
event_
,
args
);
va_start
(
args
,
event_
);
va_monitor_event
(
socket_
,
event_
,
args
);
va_end
(
args
);
}
...
...
src/pipe.cpp
View file @
f6fe600e
...
...
@@ -189,10 +189,6 @@ void zmq::pipe_t::rollback ()
void
zmq
::
pipe_t
::
flush
()
{
// If terminate() was already called do nothing.
if
(
state
==
terminated
||
state
==
double_terminated
)
return
;
// The peer does not exist anymore at this point.
if
(
state
==
terminating
)
return
;
...
...
src/socket_base.cpp
View file @
f6fe600e
...
...
@@ -1001,11 +1001,11 @@ void zmq::socket_base_t::monitor_event (int event_, ...)
{
va_list
args
;
va_start
(
args
,
event_
);
va_monitor_event
(
event
,
args
);
va_monitor_event
(
event
_
,
args
);
va_end
(
args
);
}
void
zmq
::
socket_base_t
::
monitor_event
(
int
event_
,
va_list
args
)
void
zmq
::
socket_base_t
::
va_
monitor_event
(
int
event_
,
va_list
args
)
{
get_ctx
()
->
va_monitor_event
(
this
,
event_
,
args
);
}
src/tcp_listener.cpp
View file @
f6fe600e
...
...
@@ -223,7 +223,7 @@ int zmq::tcp_listener_t::set_address (const char *addr_)
goto
error
;
#endif
socket
->
monitor_event
(
ZMQ_EVENT_LISTENING
,
addr_
,
s
);
socket
->
monitor_event
(
ZMQ_EVENT_LISTENING
,
endpoint
.
c_str
()
,
s
);
return
0
;
error
:
...
...
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