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
313b5dfa
Commit
313b5dfa
authored
Feb 12, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi-hop REQ/REP, part III., change 'type' in options to simple 'traceroute' flag
parent
96e04423
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
10 additions
and
15 deletions
+10
-15
downstream.cpp
src/downstream.cpp
+0
-1
options.cpp
src/options.cpp
+2
-2
options.hpp
src/options.hpp
+3
-3
p2p.cpp
src/p2p.cpp
+0
-1
pub.cpp
src/pub.cpp
+0
-1
rep.cpp
src/rep.cpp
+0
-1
req.cpp
src/req.cpp
+0
-1
sub.cpp
src/sub.cpp
+0
-1
upstream.cpp
src/upstream.cpp
+0
-1
xrep.cpp
src/xrep.cpp
+4
-1
xreq.cpp
src/xreq.cpp
+0
-1
zmq_init.cpp
src/zmq_init.cpp
+1
-1
No files found.
src/downstream.cpp
View file @
313b5dfa
...
...
@@ -26,7 +26,6 @@
zmq
::
downstream_t
::
downstream_t
(
class
app_thread_t
*
parent_
)
:
socket_base_t
(
parent_
)
{
options
.
type
=
ZMQ_DOWNSTREAM
;
options
.
requires_in
=
false
;
options
.
requires_out
=
true
;
}
...
...
src/options.cpp
View file @
313b5dfa
...
...
@@ -23,7 +23,6 @@
#include "err.hpp"
zmq
::
options_t
::
options_t
()
:
type
(
-
1
),
hwm
(
0
),
lwm
(
0
),
swap
(
0
),
...
...
@@ -34,7 +33,8 @@ zmq::options_t::options_t () :
sndbuf
(
0
),
rcvbuf
(
0
),
requires_in
(
false
),
requires_out
(
false
)
requires_out
(
false
),
traceroute
(
false
)
{
}
...
...
src/options.hpp
View file @
313b5dfa
...
...
@@ -34,9 +34,6 @@ namespace zmq
int
setsockopt
(
int
option_
,
const
void
*
optval_
,
size_t
optvallen_
);
// Type of the associated socket. One of the constants defined in zmq.h
int
type
;
int64_t
hwm
;
int64_t
lwm
;
int64_t
swap
;
...
...
@@ -59,6 +56,9 @@ namespace zmq
// provided by the specific socket type.
bool
requires_in
;
bool
requires_out
;
// If true, socket requires tracerouting the messages.
bool
traceroute
;
};
}
...
...
src/p2p.cpp
View file @
313b5dfa
...
...
@@ -29,7 +29,6 @@ zmq::p2p_t::p2p_t (class app_thread_t *parent_) :
outpipe
(
NULL
),
alive
(
true
)
{
options
.
type
=
ZMQ_P2P
;
options
.
requires_in
=
true
;
options
.
requires_out
=
true
;
}
...
...
src/pub.cpp
View file @
313b5dfa
...
...
@@ -27,7 +27,6 @@
zmq
::
pub_t
::
pub_t
(
class
app_thread_t
*
parent_
)
:
socket_base_t
(
parent_
)
{
options
.
type
=
ZMQ_PUB
;
options
.
requires_in
=
false
;
options
.
requires_out
=
true
;
}
...
...
src/rep.cpp
View file @
313b5dfa
...
...
@@ -30,7 +30,6 @@ zmq::rep_t::rep_t (class app_thread_t *parent_) :
waiting_for_reply
(
false
),
reply_pipe
(
NULL
)
{
options
.
type
=
ZMQ_REP
;
options
.
requires_in
=
true
;
options
.
requires_out
=
true
;
}
...
...
src/req.cpp
View file @
313b5dfa
...
...
@@ -30,7 +30,6 @@ zmq::req_t::req_t (class app_thread_t *parent_) :
reply_pipe_active
(
false
),
reply_pipe
(
NULL
)
{
options
.
type
=
ZMQ_REQ
;
options
.
requires_in
=
true
;
options
.
requires_out
=
true
;
}
...
...
src/sub.cpp
View file @
313b5dfa
...
...
@@ -28,7 +28,6 @@ zmq::sub_t::sub_t (class app_thread_t *parent_) :
socket_base_t
(
parent_
),
has_message
(
false
)
{
options
.
type
=
ZMQ_SUB
;
options
.
requires_in
=
true
;
options
.
requires_out
=
false
;
zmq_msg_init
(
&
message
);
...
...
src/upstream.cpp
View file @
313b5dfa
...
...
@@ -25,7 +25,6 @@
zmq
::
upstream_t
::
upstream_t
(
class
app_thread_t
*
parent_
)
:
socket_base_t
(
parent_
)
{
options
.
type
=
ZMQ_UPSTREAM
;
options
.
requires_in
=
true
;
options
.
requires_out
=
false
;
}
...
...
src/xrep.cpp
View file @
313b5dfa
...
...
@@ -25,9 +25,12 @@
zmq
::
xrep_t
::
xrep_t
(
class
app_thread_t
*
parent_
)
:
socket_base_t
(
parent_
)
{
options
.
type
=
ZMQ_XREP
;
options
.
requires_in
=
true
;
options
.
requires_out
=
true
;
// XREP socket adds identity to inbound messages and strips identity
// from the outbound messages.
options
.
traceroute
=
true
;
}
zmq
::
xrep_t
::~
xrep_t
()
...
...
src/xreq.cpp
View file @
313b5dfa
...
...
@@ -25,7 +25,6 @@
zmq
::
xreq_t
::
xreq_t
(
class
app_thread_t
*
parent_
)
:
socket_base_t
(
parent_
)
{
options
.
type
=
ZMQ_REQ
;
options
.
requires_in
=
true
;
options
.
requires_out
=
true
;
}
...
...
src/zmq_init.cpp
View file @
313b5dfa
...
...
@@ -78,7 +78,7 @@ bool zmq::zmq_init_t::write (::zmq_msg_t *msg_)
// Once the initial handshaking is over, XREP sockets should start
// tracerouting individual messages.
if
(
options
.
t
ype
==
ZMQ_XREP
)
if
(
options
.
t
raceroute
)
engine
->
traceroute
((
unsigned
char
*
)
peer_identity
.
data
(),
peer_identity
.
size
());
...
...
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