Beispiel #1
0
 public void Write(BinaryWriterBE Writer)
 {
     Writer.Write((byte)PacketId.OpenConnectionRequest2);
     Writer.Write(Magic);
     Address.Write(Writer);
     Writer.WriteBE(MTU);
     Writer.Write(ClientId);
 }
Beispiel #2
0
 public void Write(BinaryWriterBE Writer)
 {
     Writer.Write((byte)PacketId.OpenConnectionResponse1);
     Writer.Write(Magic);
     Writer.Write(ServerId);
     Writer.Write(Security);
     Writer.WriteBE(MTU);
     byte[] pad = new byte[0x480];
     Writer.Write(pad);
 }
Beispiel #3
0
 public void Write(BinaryWriterBE Writer)
 {
     Writer.Write((Byte)PacketId.ACK);
     Writer.WriteBE((UInt16)SequenceNumbers.Count);
     foreach (var seq in SequenceNumbers)
     {
         Writer.Write((Byte)1);
         seq.Write(Writer);
     }
 }
Beispiel #4
0
 public void Write(BinaryWriterBE Writer)
 {
     Writer.Write((Byte)PacketId.ConnectedPong);
     Writer.WriteBE(ReceiveTime);
     Writer.WriteBE(SendTime);
 }
Beispiel #5
0
 public void Write(BinaryWriterBE Writer)
 {
     Writer.Write((byte)4);
     Writer.Write(~Address);
     Writer.WriteBE(Port);
 }