public static QueueAck ReadAck(PipeStream stream, int ReceiveBufferSize = 8192) { NetStream netstream = new NetStream(); netstream.CopyFrom(stream, ReceiveBufferSize); return(new QueueAck(netstream)); }
public static QueueItem ReadQStream(PipeStream stream, int ReceiveBufferSize = 8192) { NetStream netstream = new NetStream(); netstream.CopyFrom(stream, ReceiveBufferSize); return(new QueueItem(netstream, null)); }
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)); }