Exemplo n.º 1
0
        public void FrameS_305()
        {
            const ushort recieveSeqNo = 305;
            var          frm1         = new FrameS(recieveSeqNo);

            var buffer       = new byte[Constants.MinFrameLength].AsSpan();
            var bytesWritten = frm1.TryWrite(buffer);
            var desc         = ByteUtil.Describe(buffer, 0, length: Constants.MinFrameLength, annotations: FrameS.Annotations);

            var(error, frm2) = FrameS.Read(buffer.Slice(2));

            Assert.Equal(ErrorCode.None, error);
            Assert.Equal(recieveSeqNo, frm2.RecieveSeqNo);
        }
Exemplo n.º 2
0
 public void Send(Guid connectionId, FrameS frame)
 => SendImpl(connectionId, frame);