Brod.Network.Socket.RecvAll C# (CSharp) Метод

RecvAll() публичный Метод

public RecvAll ( Int32 timeout ) : Queue
timeout System.Int32
Результат Queue
        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;
        }

Same methods

Socket::RecvAll ( Encoding encoding, Int32 timeout ) : Queue