summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-04-06 15:23:13 +0200
committerMartin Lucina <mato@kotelna.sk>2010-04-06 15:23:13 +0200
commita7973a2c4997e2ff79126eb073dc675c574de917 (patch)
tree103ef19fb634058deef0ad587a457ec32b645416 /doc
parent0777567e8911382ac42859f907730df023ebec26 (diff)
Documentation fixes
Diffstat (limited to 'doc')
-rw-r--r--doc/zmq_bind.txt6
-rw-r--r--doc/zmq_setsockopt.txt7
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/zmq_bind.txt b/doc/zmq_bind.txt
index 4275499..78d78e2 100644
--- a/doc/zmq_bind.txt
+++ b/doc/zmq_bind.txt
@@ -47,11 +47,11 @@ The requested 'transport' protocol is not supported.
*ENOCOMPATPROTO*::
The requested 'transport' protocol is not compatible with the socket type.
*EADDRINUSE*::
-The given 'address' is already in use.
+The requested 'address' is already in use.
*EADDRNOTAVAIL*::
-Requested 'address' was not local.
+The requested 'address' was not local.
*ENODEV*::
-A nonexistent interface was requested.
+The requested 'address' specifies a nonexistent interface.
EXAMPLE
diff --git a/doc/zmq_setsockopt.txt b/doc/zmq_setsockopt.txt
index 6b31302..18c55bd 100644
--- a/doc/zmq_setsockopt.txt
+++ b/doc/zmq_setsockopt.txt
@@ -242,13 +242,16 @@ rc = zmq_setsockopt (socket, ZMQ_SUBSCRIBE, "ANIMALS.CATS", 12);
.Setting I/O thread affinity
----
+int64_t affinity;
/* Incoming connections on TCP port 5555 shall be handled by I/O thread 1 */
-rc = zmq_setsockopt (socket, ZMQ_AFFINITY, 1, sizeof (int64_t));
+affinity = 1;
+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 */
-rc = zmq_setsockopt (socket, ZMQ_AFFINITY, 2, sizeof (int64_t));
+affinity = 2;
+rc = zmq_setsockopt (socket, ZMQ_AFFINITY, &affinity, sizeof affinity);
assert (rc);
rc = zmq_bind (socket, "tcp://lo:5555");
assert (rc);