public Queue<byte[]> RecvAll(Int32 timeout)
{
byte[] bytes = _zmqSocket.Recv(timeout);
if (bytes == null)
return null;
var queue = new Queue<byte[]>();
queue.Enqueue(bytes);
while (_zmqSocket.RcvMore)
{
queue.Enqueue(_zmqSocket.Recv());
}
return queue;
}