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

            Type           = (PacketType)decoder.Byte();
            TimeSinceStart = decoder.Timestamp();
            decoder.Magic();
        }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public ConnectedPingPacket(ref RakDecoder decoder)
 {
     TimeSinceStart = decoder.Timestamp();
 }
Ejemplo n.º 4
0
 public ConnectionRequestPacket(ref RakDecoder decoder)
 {
     ClientGuid     = decoder.Long().Unsigned();
     TimeSinceStart = decoder.Timestamp();
     UseEncryption  = decoder.Byte();
 }