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