Screenary.TransportClient.isConnected C# (CSharp) Method

isConnected() public method

public isConnected ( ) : bool
return bool
        public bool isConnected()
        {
            if (tcpClient == null)
                return false;
            else
                return tcpClient.Connected;
        }

Usage Example

Example #1
0
 static void ThreadProc(TransportClient client)
 {
     try
     {
         while (client.isConnected())
         {
             client.RecvPDU();
             Thread.Sleep(10);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }
All Usage Examples Of Screenary.TransportClient::isConnected