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