BF2Statistics.Gamespy.GpcmClient.SendKeepAlive C# (CSharp) Method

SendKeepAlive() public method

Polls the connection, and checks for drops
public SendKeepAlive ( ) : void
return void
        public void SendKeepAlive()
        {
            if (Status == LoginStatus.Completed)
            {
                // Try and send a Keep-Alive
                try
                {
                    Stream.SendAsync(@"\ka\\final\");
                }
                catch
                {
                    Disconnect(8);
                }
            }
        }