Zeromq Toolkit - zmq_poll
- :
havedata =
zmq_poll(sock, timeout)
- :
indexlist =
zmq_poll(socklist, timeout)
-
Wait up to timeout time for received data on socket.
Inputs
sock - the socket to wait on.
socklist - the array of sockets to wait on.
timeout - timeout time in milliseconds. A value of 0 will return without waiting. A value of -1 will wait until there is data.
Outputs
havedata - value of 1 if have data.
indexlist - cell array of indexes to sockets that have data.