Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6d9543aa

Přidáno uživatelem Jakub Hejman před téměř 4 roky(ů)

Re #8899 - Server data reception

Zobrazit rozdíly:

deltarobot-vr/Assets/DeltaRobotVr/Client.cs
36 36
        private const UInt16 ProtocolMagicId = 0x3001;
37 37
        private const UInt16 ProtocolVersionId = 0x2002;
38 38
        private const UInt16 PingId = 0x3004;
39
        private const UInt16 PongId = 0x3005;
39 40
        private const UInt16 EotId = 0xF006;
40 41
        private const UInt16 CurrentActuatorPositionId = 0x4003;
41 42
        private const UInt16 CurrentDirectionVectorId = 0x4007;
......
416 417
        private void ProcessPing(BinaryReader reader, BinaryWriter writer)
417 418
        {
418 419
            UInt64 pingValue = reader.ReadUInt64();
420

  
421
            writer.Write(PongId);
419 422
            writer.Write(pingValue);
420 423
        }
421 424
    }

Také k dispozici: Unified diff