Exemplo n.º 1
0
        /// <summary>
        /// Pings the game server
        /// </summary>
        public void SendPing()
        {
            PingOut toServer;

            // 0x35 is just some number I threw in there that was close to what the real d2 client
            // was sending, probably works fine with 0.
            toServer = new PingOut((uint)DateTime.Now.Ticks, 0x35);

            SendPacket(toServer);
        }
        /// <summary>
        /// Pings the game server
        /// </summary>
        public void SendPing()
        {
            PingOut toServer;

            // 0x35 is just some number I threw in there that was close to what the real d2 client
            // was sending, probably works fine with 0.
            toServer = new PingOut((uint)DateTime.Now.Ticks, 0x35);

            SendPacket(toServer);
        }