예제 #1
0
        public static void SequenceNumberRequestMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            account.Sequence++;

            SequenceNumberMessage sequenceNumberMessage = new SequenceNumberMessage((ushort)account.Sequence);
            account.SocketManager.Send(sequenceNumberMessage);
        }
예제 #2
0
        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);
            }
        }