Beispiel #1
0
        private void OnRstStreamFrame(Frame frame)
        {
            RSTStreamFrame rsf = (RSTStreamFrame)frame;

            if (_streams.ContainsKey(rsf.StreamId))
            {
                QuicStream stream = _streams[rsf.StreamId];
                stream.ResetStream(rsf);
            }
        }
Beispiel #2
0
        public Frame GetFrame()
        {
            Frame result;
            byte  frameType = _array.PeekByte();

            switch (frameType)
            {
            case 0x00: result = new PaddingFrame(); break;

            case 0x01: result = new RSTStreamFrame(); break;

            case 0x02: result = new ConnectionCloseFrame(); break;

            case 0x06: result = new MaxStreamIdFrame(); break;

            case 0x10: result = new StreamFrame(); break;

            case 0x11: result = new StreamFrame(); break;

            case 0x12: result = new StreamFrame(); break;

            case 0x13: result = new StreamFrame(); break;

            case 0x14: result = new StreamFrame(); break;

            case 0x15: result = new StreamFrame(); break;

            case 0x16: result = new StreamFrame(); break;

            case 0x17: result = new StreamFrame(); break;

            default: result = null; break;
            }

            if (result != null)
            {
                result.Decode(_array);
            }

            return(result);
        }
Beispiel #3
0
 public void ResetStream(RSTStreamFrame frame)
 {
     State = StreamState.ResetRecvd;
 }