Wait up to timeout time for received data on socket.
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.
havedata - value of 1 if have data.
indexlist - cell array of indexes to sockets that have data.
See also: zmq_socket.
Package: zeromq