public static void SequenceNumberRequestMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { account.Sequence++; SequenceNumberMessage sequenceNumberMessage = new SequenceNumberMessage((ushort)account.Sequence); account.SocketManager.Send(sequenceNumberMessage); }
public static void SequenceNumberRequestMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { account.Sequence++; SequenceNumberMessage sequenceNumberMessage = new SequenceNumberMessage((ushort)account.Sequence); using (BigEndianWriter writer = new BigEndianWriter()) { sequenceNumberMessage.Serialize(writer); MessagePackaging messagePackaging = new MessagePackaging(writer); messagePackaging.Pack((int)sequenceNumberMessage.ProtocolID); account.SocketManager.Send(messagePackaging.Writer.Content); } }