Ejemplo n.º 1
0
        public override void Read(System.IO.BinaryReader stream)
        {
            pingKey = stream.ReadInt16();

            byte pingModeId = stream.ReadByte();

            switch (pingModeId)
            {
            case 1:
                pingMode = PingMode.Request;
                break;

            case 2:
                pingMode = PingMode.Response;
                break;

            default:
                pingMode = PingMode.Unknown;
                break;
            }
        }
Ejemplo n.º 2
0
        public static BeamCount GetBeamCount(PingMode pingMode)
        {
            CheckMinMax(pingMode, MinPingMode, MaxPingMode, nameof(pingMode));

            return(configMap.Value[pingMode]);
        }
Ejemplo n.º 3
0
 public Packet1Ping(long pingKey, PingMode pingMode)
 {
     this.pingKey = pingKey;
 }