From 783463ac49aeb2d1be57dc9b3669d508187415a8 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Thu, 25 Mar 2010 17:31:18 +0100 Subject: Clarify use of poll() with C++ API, fix typo --- doc/zmq_cpp.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/zmq_cpp.txt b/doc/zmq_cpp.txt index 19467d9..c12c834 100644 --- a/doc/zmq_cpp.txt +++ b/doc/zmq_cpp.txt @@ -117,7 +117,7 @@ Constructor These map to the _zmq_msg_init()_, _zmq_msg_init_size()_ and _zmq_msg_init_data()_ functions, described in linkzmq:zmq_msg_init[3], -linkzmq:zmq_msg_init_size[3] and linkzmq_msg_init_data[3] respectively. +linkzmq:zmq_msg_init_size[3] and linkzmq:zmq_msg_init_data[3] respectively. Destructor @@ -164,6 +164,9 @@ Input/output multiplexing The _poll()_ function is a namespaced equivalent of the _zmq_poll()_ function, as described in linkzmq:zmq_poll[3]. +NOTE: To obtain a 0MQ _socket_ for use in a _zmq_pollitem_t_ structure, you +should cast an instance of the _socket_t_ class to `(void *)`. + ERROR HANDLING -------------- -- cgit v1.2.3