Exemple #1
0
        public static bool DeserializePing(IStreamReader stream, out PingCommand ping)
        {
            Timestamp remoteTime;

            TimestampDeserializer.DeserializeTimestamp(stream, out remoteTime);
            ping = new PingCommand(remoteTime);

            return(true);
        }
Exemple #2
0
        public static bool DeserializePong(IStreamReader stream, out PongCommand pong)
        {
            Timestamp remoteTime;

            TimestampDeserializer.DeserializeTimestamp(stream, out remoteTime);

            Timestamp echoedTime;

            TimestampDeserializer.DeserializeTimestamp(stream, out echoedTime);

            pong = new PongCommand(remoteTime, echoedTime);

            return(true);
        }