Пример #1
0
        internal static SpdyStream Open(
            SynStream synStream,
            ConcurrentPriorityQueue <Frame> sendingPriorityQueue)
        {
            var stream = new SpdyStream(synStream, sendingPriorityQueue);

            stream.Open();
            return(stream);
        }
Пример #2
0
        internal static SpdyStream Accept(
            SynStream synStream,
            ConcurrentPriorityQueue <Frame> sendingPriorityQueue,
            NameValueHeaderBlock?headers =
            default)
        {
            var stream = new SpdyStream(synStream, sendingPriorityQueue);

            stream.Accept(headers);
            return(stream);
        }