Esempio n. 1
0
        void ReadPriorityFrame(IChannelHandlerContext ctx, IByteBuffer payload, IHttp2FrameListener listener)
        {
            long word1            = payload.ReadUnsignedInt();
            bool exclusive        = (word1 & 0x80000000L) != 0;
            int  streamDependency = (int)(uint)(word1 & 0x7FFFFFFFL);

            if (streamDependency == _streamId)
            {
                ThrowHelper.ThrowStreamError_AStreamCannotDependOnItself(_streamId);
            }

            short weight = (short)(payload.ReadByte() + 1);

            listener.OnPriorityRead(ctx, _streamId, streamDependency, weight, exclusive);
        }
Esempio n. 2
0
 public virtual void OnPriorityRead(IChannelHandlerContext ctx, int streamId, int streamDependency, short weight, bool exclusive)
 {
     _listener.OnPriorityRead(ctx, streamId, streamDependency, weight, exclusive);
 }
Esempio n. 3
0
 public void OnPriorityRead(IChannelHandlerContext ctx, int streamId, int streamDependency, short weight, bool exclusive)
 {
     _logger.LogPriority(Direction.Inbound, ctx, streamId, streamDependency, weight, exclusive);
     _listener.OnPriorityRead(ctx, streamId, streamDependency, weight, exclusive);
 }