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
7b4cf2a4
Commit
7b4cf2a4
authored
Feb 12, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi-hop REQ/REP, part I., socket type is known to all associated objects
parent
cd7300fd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
0 deletions
+13
-0
downstream.cpp
src/downstream.cpp
+1
-0
options.cpp
src/options.cpp
+1
-0
options.hpp
src/options.hpp
+3
-0
p2p.cpp
src/p2p.cpp
+1
-0
pub.cpp
src/pub.cpp
+1
-0
rep.cpp
src/rep.cpp
+1
-0
req.cpp
src/req.cpp
+1
-0
sub.cpp
src/sub.cpp
+1
-0
upstream.cpp
src/upstream.cpp
+1
-0
xrep.cpp
src/xrep.cpp
+1
-0
xreq.cpp
src/xreq.cpp
+1
-0
No files found.
src/downstream.cpp
View file @
7b4cf2a4
...
...
@@ -26,6 +26,7 @@
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 @
7b4cf2a4
...
...
@@ -23,6 +23,7 @@
#include "err.hpp"
zmq
::
options_t
::
options_t
()
:
type
(
-
1
),
hwm
(
0
),
lwm
(
0
),
swap
(
0
),
...
...
src/options.hpp
View file @
7b4cf2a4
...
...
@@ -34,6 +34,9 @@ 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
;
...
...
src/p2p.cpp
View file @
7b4cf2a4
...
...
@@ -29,6 +29,7 @@ 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 @
7b4cf2a4
...
...
@@ -27,6 +27,7 @@
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 @
7b4cf2a4
...
...
@@ -30,6 +30,7 @@ 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 @
7b4cf2a4
...
...
@@ -30,6 +30,7 @@ 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 @
7b4cf2a4
...
...
@@ -28,6 +28,7 @@ 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 @
7b4cf2a4
...
...
@@ -25,6 +25,7 @@
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 @
7b4cf2a4
...
...
@@ -25,6 +25,7 @@
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
;
}
...
...
src/xreq.cpp
View file @
7b4cf2a4
...
...
@@ -25,6 +25,7 @@
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
;
}
...
...
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