Beispiel #1
0
 public void Connect()
 {
     AndroidClientController.AwakeAcpService(device);
     socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
     socket.Connect(GetEndPoint(device));
     Logger.Info(this, $"{device} communicator connected");
 }
Beispiel #2
0
 public void Close()
 {
     try {
         socket.Close();
         socket.Dispose();
     } catch { }
     AndroidClientController.StopAcpService(device);
     Logger.Info(this, $"{device} communicator disconnected");
 }