コード例 #1
0
 public static int isHostConnected()
 {
     if (!ChannelUtil.pingRouterConnect())
     {
         return(-1001);
     }
     if (UsbIPUtil.isHostLinked())
     {
         return(0);
     }
     return(-1002);
 }
コード例 #2
0
 private void adapterConnectedThreadStart()
 {
     while (!UsbIPUtil.isHostLinked())
     {
         Thread.Sleep(5000);
     }
     Thread.Sleep(5000);
     if (this.socketModel != null)
     {
         this.socketModel.GetVersion();
     }
 }