示例#1
0
文件: SpdyStream.cs 项目: lulzzz/Port
        internal static SpdyStream Open(
            SynStream synStream,
            ConcurrentPriorityQueue <Frame> sendingPriorityQueue)
        {
            var stream = new SpdyStream(synStream, sendingPriorityQueue);

            stream.Open();
            return(stream);
        }
示例#2
0
文件: SpdyStream.cs 项目: lulzzz/Port
        internal static SpdyStream Accept(
            SynStream synStream,
            ConcurrentPriorityQueue <Frame> sendingPriorityQueue,
            NameValueHeaderBlock?headers =
            default)
        {
            var stream = new SpdyStream(synStream, sendingPriorityQueue);

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