Example #1
0
        private IReadOnlyList <byte[]> Receive()
        {
            var res     = new List <byte[]>();
            var hasMore = true;

            while (hasMore)
            {
                res.Add(_socket.Recv());
                hasMore = _socket.HasMoreToRecv();
            }

            return(res);
        }