Ejemplo n.º 1
0
 private void IPong()
 {
     Game_PingPong pong = new Game_PingPong();
     pong.Read(fStream);
     if (Pong != null)
         Pong(pong.fPingTime);
 }
Ejemplo n.º 2
0
        public void Ping(int ms)
        {
            Game_PingPong ping = new Game_PingPong();
            ping.fPingTime = ms;

            ResetIdleTimer();
            lock (fStream) {
                fStream.BufferWriter();
                fStream.WriteUShort((ushort)GameCli2Srv.PingRequest);
                ping.Write(fStream);
                fStream.FlushWriter();
            }
        }