MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getBoundPort

Method getBoundPort

valdi/src/valdi/runtime/Debugger/DebuggerService.cpp:141–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141uint16_t DebuggerService::getBoundPort() {
142 uint16_t boundPort = 0;
143 _dispatchQueue->sync([&]() {
144 if (_tcpServer != nullptr) {
145 boundPort = _tcpServer->getBoundPort();
146 }
147 });
148
149 return boundPort;
150}
151
152void DebuggerService::addListener(IDebuggerServiceListener* listener) {
153 std::lock_guard<Mutex> guard(_mutex);

Callers

nothing calls this directly

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected