public UnconnectedPingPacket(byte[] data)
        {
            RakDecoder decoder = new RakDecoder(data);

            Type           = (PacketType)decoder.Byte();
            TimeSinceStart = decoder.Timestamp();
            decoder.Magic();
        }
Beispiel #2
0
 public NewIncomingConnectionPacket(ref RakDecoder decoder)
 {
     InternalAddress = new RakAddress[10];
     ServerAddress   = decoder.Address();
     for (int i = 0; i < 10; i++)
     {
         InternalAddress[i] = decoder.Address();
     }
     TimeSinceStart1 = decoder.Timestamp();
     TimeSinceStart2 = decoder.Timestamp();
 }
Beispiel #3
0
 public ConnectedPingPacket(ref RakDecoder decoder)
 {
     TimeSinceStart = decoder.Timestamp();
 }
Beispiel #4
0
 public ConnectionRequestPacket(ref RakDecoder decoder)
 {
     ClientGuid     = decoder.Long().Unsigned();
     TimeSinceStart = decoder.Timestamp();
     UseEncryption  = decoder.Byte();
 }