MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / connect

Method connect

source/MaaAdbControlUnit/General/Connection.cpp:46–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool Connection::connect()
47{
48 LogFunc;
49
50 bool is_remote = adb_serial_.find(':') != std::string::npos;
51
52 if (is_remote) {
53 if (!connect_remote()) {
54 LogInfo << "failed to connect remote";
55 return false;
56 }
57 }
58
59 if (!test_connection()) {
60 return false;
61 }
62
63 start_monitor();
64
65 return true;
66}
67
68bool Connection::kill_server()
69{

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected