public void Write(BinaryWriterBE Writer) { Writer.Write((byte)PacketId.OpenConnectionRequest2); Writer.Write(Magic); Address.Write(Writer); Writer.WriteBE(MTU); Writer.Write(ClientId); }
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); }
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); } }
public void Write(BinaryWriterBE Writer) { Writer.Write((Byte)PacketId.ConnectedPong); Writer.WriteBE(ReceiveTime); Writer.WriteBE(SendTime); }
public void Write(BinaryWriterBE Writer) { Writer.Write((byte)4); Writer.Write(~Address); Writer.WriteBE(Port); }