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
ea19b7b6
Commit
ea19b7b6
authored
Nov 09, 2012
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanups
parent
925a5306
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
options.cpp
src/options.cpp
+1
-1
req.cpp
src/req.cpp
+0
-1
session_base.cpp
src/session_base.cpp
+0
-2
socket_base.cpp
src/socket_base.cpp
+5
-9
No files found.
src/options.cpp
View file @
ea19b7b6
...
...
@@ -49,13 +49,13 @@ zmq::options_t::options_t () :
delay_on_disconnect
(
true
),
filter
(
false
),
recv_identity
(
false
),
raw_sock
(
false
),
tcp_keepalive
(
-
1
),
tcp_keepalive_cnt
(
-
1
),
tcp_keepalive_idle
(
-
1
),
tcp_keepalive_intvl
(
-
1
),
socket_id
(
0
)
{
raw_sock
=
false
;
}
int
zmq
::
options_t
::
setsockopt
(
int
option_
,
const
void
*
optval_
,
...
...
src/req.cpp
View file @
ea19b7b6
...
...
@@ -147,7 +147,6 @@ zmq::req_session_t::req_session_t (io_thread_t *io_thread_, bool connect_,
zmq
::
req_session_t
::~
req_session_t
()
{
state
=
options
.
recv_identity
?
identity
:
bottom
;
}
int
zmq
::
req_session_t
::
push_msg
(
msg_t
*
msg_
)
...
...
src/session_base.cpp
View file @
ea19b7b6
...
...
@@ -20,8 +20,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdarg.h>
#include "session_base.hpp"
#include "i_engine.hpp"
#include "err.hpp"
...
...
src/socket_base.cpp
View file @
ea19b7b6
...
...
@@ -428,15 +428,11 @@ int zmq::socket_base_t::connect (const char *addr_)
// The total HWM for an inproc connection should be the sum of
// the binder's HWM and the connector's HWM.
int
sndhwm
;
int
rcvhwm
;
if
(
options
.
sndhwm
==
0
||
peer
.
options
.
rcvhwm
==
0
)
sndhwm
=
0
;
else
int
sndhwm
=
0
;
if
(
options
.
sndhwm
!=
0
&&
peer
.
options
.
rcvhwm
!=
0
)
sndhwm
=
options
.
sndhwm
+
peer
.
options
.
rcvhwm
;
if
(
options
.
rcvhwm
==
0
||
peer
.
options
.
sndhwm
==
0
)
rcvhwm
=
0
;
else
int
rcvhwm
=
0
;
if
(
options
.
rcvhwm
!=
0
&&
peer
.
options
.
sndhwm
!=
0
)
rcvhwm
=
options
.
rcvhwm
+
peer
.
options
.
sndhwm
;
// Create a bi-directional pipe to connect the peers.
...
...
@@ -1034,7 +1030,7 @@ int zmq::socket_base_t::monitor (const char *addr_, int events_)
// Register events to monitor
monitor_events
=
events_
;
monitor_socket
=
zmq_socket
(
get_ctx
(),
ZMQ_PAIR
);
monitor_socket
=
zmq_socket
(
get_ctx
(),
ZMQ_PAIR
);
if
(
monitor_socket
==
NULL
)
return
-
1
;
...
...
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