isConnected() public method

public isConnected ( ) : bool
return bool
Example #1
0
 static void ThreadProc(TransportClient client)
 {
     try
     {
         while (client.isConnected())
         {
             client.RecvPDU();
             Thread.Sleep(10);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }
Example #2
0
 static void ThreadProc(TransportClient client)
 {
     try
     {
         while (client.isConnected())
         {
             client.RecvPDU();
             Thread.Sleep(10);
         }
     }
     catch(Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }