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
8ea779c8
Commit
8ea779c8
authored
May 15, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sizeof usage in man pages
parent
593010fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
zmq_msg_recv.txt
doc/zmq_msg_recv.txt
+1
-1
zmq_recvmsg.txt
doc/zmq_recvmsg.txt
+1
-1
zmq_setsockopt.txt
doc/zmq_setsockopt.txt
+2
-2
No files found.
doc/zmq_msg_recv.txt
View file @
8ea779c8
...
...
@@ -91,7 +91,7 @@ zmq_msg_close (&msg);
.Receiving a multi-part message
----
int64_t more;
size_t more_size = sizeof
more
;
size_t more_size = sizeof
(more)
;
do {
/* Create an empty 0MQ message to hold the message part */
zmq_msg_t part;
...
...
doc/zmq_recvmsg.txt
View file @
8ea779c8
...
...
@@ -89,7 +89,7 @@ zmq_msg_close (&msg);
.Receiving a multi-part message
----
int64_t more;
size_t more_size = sizeof
more
;
size_t more_size = sizeof
(more)
;
do {
/* Create an empty 0MQ message to hold the message part */
zmq_msg_t part;
...
...
doc/zmq_setsockopt.txt
View file @
8ea779c8
...
...
@@ -533,13 +533,13 @@ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "ANIMALS.CATS", 12);
int64_t affinity;
/* Incoming connections on TCP port 5555 shall be handled by I/O thread 1 */
affinity = 1;
rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof
affinity
);
rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof
(affinity)
);
assert (rc);
rc = zmq_bind (socket, "tcp://lo:5555");
assert (rc);
/* Incoming connections on TCP port 5556 shall be handled by I/O thread 2 */
affinity = 2;
rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof
affinity
);
rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof
(affinity)
);
assert (rc);
rc = zmq_bind (socket, "tcp://lo:5556");
assert (rc);
...
...
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