예제 #1
0
        public override bool HandlePacket(IPacket packet)
        {
            var seq1 = packet.ReadShort();
            var seq2 = packet.ReadChar();

            _packetProcessActions.SetUpdatedBaseSequenceNumber(seq1, seq2);

            var response = new PacketBuilder(PacketFamily.Connection, PacketAction.Ping).Build();

            try
            {
                _packetSendService.SendPacketAsync(response)
                .Wait();
            }
            catch (NoDataSentException)
            {
                return(false);
            }

            return(true);
        }
예제 #2
0
 public void UpdateSequence(int seq1, int seq2)
 {
     _packetProcessActions.SetUpdatedBaseSequenceNumber(seq1, seq2);
 }