Beispiel #1
0
        public void Unpack(UdpBitStream buffer, UdpSocket socket)
        {
            ObjSequence = TrimSequence(buffer.ReadUShort(16));
            AckSequence = TrimSequence(buffer.ReadUShort(16));
            AckHistory = buffer.ReadULong(socket.Config.AckRedundancy);

            if (socket.Config.CalculateNetworkPing) {
                AckTime = buffer.ReadUShort(16);
            }

            if (socket.Config.WritePacketBitSize) {
                BitSize = buffer.ReadUShort(16);
            }
        }
Beispiel #2
0
        public void Unpack(UdpBitStream buffer, UdpSocket socket)
        {
            ObjSequence = TrimSequence(buffer.ReadUShort(16));
            AckSequence = TrimSequence(buffer.ReadUShort(16));
            AckHistory  = buffer.ReadULong(socket.Config.AckRedundancy);

            if (socket.Config.CalculateNetworkPing)
            {
                AckTime = buffer.ReadUShort(16);
            }

            if (socket.Config.WritePacketBitSize)
            {
                BitSize = buffer.ReadUShort(16);
            }
        }