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); }
public void UpdateSequence(int seq1, int seq2) { _packetProcessActions.SetUpdatedBaseSequenceNumber(seq1, seq2); }