Example #1
0
        public static QueueAck ReadAck(PipeStream stream, int ReceiveBufferSize = 8192)
        {
            NetStream netstream = new NetStream();

            netstream.CopyFrom(stream, ReceiveBufferSize);
            return(new QueueAck(netstream));
        }
Example #2
0
        public static QueueItem ReadQStream(PipeStream stream, int ReceiveBufferSize = 8192)
        {
            NetStream netstream = new NetStream();

            netstream.CopyFrom(stream, ReceiveBufferSize);
            return(new QueueItem(netstream, null));
        }
Example #3
0
        public static QueueAck ReadAckStream(NetworkStream stream, int ReadTimeout, int ReceiveBufferSize = 8192)
        {
            NetStream netstream = new NetStream();

            //netstream.CopyWithTerminateCount(stream, ProcessTimeout, ReceiveBufferSize);
            netstream.CopyFrom(stream, ReadTimeout, ReceiveBufferSize);
            return(new QueueAck(netstream));
        }