internal static SpdyStream Open( SynStream synStream, ConcurrentPriorityQueue <Frame> sendingPriorityQueue) { var stream = new SpdyStream(synStream, sendingPriorityQueue); stream.Open(); return(stream); }
internal static SpdyStream Accept( SynStream synStream, ConcurrentPriorityQueue <Frame> sendingPriorityQueue, NameValueHeaderBlock?headers = default) { var stream = new SpdyStream(synStream, sendingPriorityQueue); stream.Accept(headers); return(stream); }
private SpdyStream( SynStream synStream, ConcurrentPriorityQueue <Frame> sendingPriorityQueue) { _synStream = synStream; _sendingPriorityQueue = sendingPriorityQueue; _streamInUse = RstStream.StreamInUse(Id); _protocolError = RstStream.ProtocolError(Id); _flowControlError = RstStream.FlowControlError(Id); _streamAlreadyClosedError = RstStream.StreamAlreadyClosed(Id); }