private void SendRequest(Packet packet) { packet.OrigininatesFromClient = true; packet.IsRequest = true; packet.SequenceNumber = SequenceCounter++; Sock.Send(packet.Emit()); }
public Packet SendRequest(Packet packet) { packet.OrigininatesFromClient = true; packet.IsRequest = true; packet.SequenceNumber = ++SequenceCounter; Sock.Send(packet.Emit()); return packet; }
private void SendOkResponse(Packet packet) { packet.OrigininatesFromClient = packet.OrigininatesFromClient; packet.IsRequest = false; packet.SequenceNumber = packet.SequenceNumber; Sock.Send(packet.Emit()); }