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

Method getBoundPort

valdi/src/valdi/runtime/Debugger/TCPServerImpl.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96uint16_t TCPServerImpl::getBoundPort() {
97 boost::system::error_code ec;
98 auto endpoint = _acceptor.local_endpoint(ec);
99 if (ec.failed()) {
100 return 0;
101 }
102
103 return endpoint.port();
104}
105
106std::vector<std::string> TCPServerImpl::getAvailableAddresses() {
107 return Valdi::getAllAvailableAddresses(_ioService);

Callers 3

connectToServiceMethod · 0.45
TESTFunction · 0.45
loadModuleMethod · 0.45

Calls 1

failedMethod · 0.80

Tested by 2

connectToServiceMethod · 0.36
TESTFunction · 0.36