Zmq poll. A value of -1 will wait until there is data. Each zmq_pollite...
Zmq poll. A value of -1 will wait until there is data. Each zmq_pollitem_t in the array acts both as an input and an output. In particular, zmq_poller_destroy may not be called multiple times for the same poller instance. Jan 28, 2015 · 如果timeout参数的值是0,zmq_poll ()函数会立即返回。 如果timeout值是 -1,zmq_poll ()则会进入无限阻塞等待状态,直到至少一个zmq_pollitem_t项上请求的事件发生了。 zmq_pollitem_t结构中的events和revents成员是由以下标志进行位与和或操作组成的: ZMQ_POLLIN The zmq_poll () function provides a mechanism for applications to multiplex input/output events in a level-triggered fashion over a set of sockets. Wait up to timeout time for received data on socket. Inputs sock - the socket to wait on. It is conceptually equivalent to the zframe(3) from CZMQ, the high level C bindings to libzmq. A value of 0 will return without waiting. It exits when it receives “Exit” message from the command server. zmq_poll() for efficient ZeroMQ socket polling. xaxd ugdh koebep lroh vdlbps jpn viulvi urrezs kfcsfdn gmz