Esempio n. 1
0
 private void SendRequest(Packet packet)
 {
     packet.OrigininatesFromClient = true;
     packet.IsRequest = true;
     packet.SequenceNumber = SequenceCounter++;
     Sock.Send(packet.Emit());
 }
Esempio n. 2
0
        public Packet SendRequest(Packet packet)
        {
            packet.OrigininatesFromClient = true;
            packet.IsRequest = true;
            packet.SequenceNumber = ++SequenceCounter;
            Sock.Send(packet.Emit());

            return packet;
        }
Esempio n. 3
0
 private void SendOkResponse(Packet packet)
 {
     packet.OrigininatesFromClient = packet.OrigininatesFromClient;
     packet.IsRequest = false;
     packet.SequenceNumber = packet.SequenceNumber;
     Sock.Send(packet.Emit());
 }