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
72b2f07a
Commit
72b2f07a
authored
Jan 11, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQII-36: Chat example & forwarder broken because of changes subscribe semantics
parent
65f450f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
zmq_forwarder.cpp
devices/zmq_forwarder/zmq_forwarder.cpp
+1
-1
display.cpp
examples/chat/display.cpp
+1
-1
No files found.
devices/zmq_forwarder/zmq_forwarder.cpp
View file @
72b2f07a
...
...
@@ -54,7 +54,7 @@ int main (int argc, char *argv [])
// TODO: make the number of I/O threads configurable.
zmq
::
context_t
ctx
(
1
,
1
);
zmq
::
socket_t
in_socket
(
ctx
,
ZMQ_SUB
);
in_socket
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
*"
,
1
);
in_socket
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
"
,
0
);
zmq
::
socket_t
out_socket
(
ctx
,
ZMQ_PUB
);
int
n
=
0
;
...
...
examples/chat/display.cpp
View file @
72b2f07a
...
...
@@ -36,7 +36,7 @@ int main (int argc, const char *argv [])
// Initialise 0MQ infrastructure.
zmq
::
context_t
ctx
(
1
,
1
);
zmq
::
socket_t
s
(
ctx
,
ZMQ_SUB
);
s
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
*"
,
1
);
s
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
"
,
0
);
s
.
connect
(
address
);
while
(
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