mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
error in zmq_poll manpage fixed
This commit is contained in:
parent
e9cebc86ed
commit
102077471c
@ -51,10 +51,10 @@ there's a 0MQ socket in the pollset belonging to a different application thread.
|
||||
.nf
|
||||
zmq_pollitem_t items [2];
|
||||
items [0].socket = s;
|
||||
items [0].events = POLLIN;
|
||||
items [0].events = ZMQ_POLLIN;
|
||||
items [1].socket = NULL;
|
||||
items [1].fd = my_fd;
|
||||
items [1].events = POLLIN;
|
||||
items [1].events = ZMQ_POLLIN;
|
||||
|
||||
int rc = zmq_poll (items, 2);
|
||||
assert (rc != -1);
|
||||
|
Loading…
Reference in New Issue
Block a user