Home | History | Annotate | Download | only in adb_connection_maintainer

Lines Matching refs:port

38 std::string MakeIPAndPort(int port) {
40 return kLocalHostPrefix + std::to_string(port);
43 std::string MakeConnectMessage(int port) {
45 return MakeMessage(kConnectPrefix + MakeIPAndPort(port));
88 bool AdbConnect(cvd::SharedFD sock, int port) {
89 if (!SendAll(sock, MakeConnectMessage(port))) {
102 void EstablishConnection(int port) {
104 LOG(INFO) << "Attempting to connect to device on port " << port;
106 if (sock->IsOpen() && AdbConnect(sock, port)) {
107 LOG(INFO) << "connection attempted to device on port " << port;
114 void WaitForAdbDisconnection(int port) {
115 LOG(INFO) << "Watching for disconnect on port " << port;
125 if (devices_str.find(MakeIPAndPort(port)) == std::string::npos) {
134 [[noreturn]] void cvd::EstablishAndMaintainConnection(int port) {
136 EstablishConnection(port);
137 WaitForAdbDisconnection(port);