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

Method getBoundPort

valdi/src/valdi/hermes/WebSocketServer/WebSocketServerImpl.cpp:137–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137uint16_t WebSocketServerImpl::getBoundPort() {
138 websocketpp::lib::asio::error_code ec;
139 auto endpoint = _server.get_local_endpoint(ec);
140 if (ec) {
141 return 0;
142 }
143 return endpoint.port();
144}
145
146std::vector<std::string> WebSocketServerImpl::getAvailableAddresses() {
147 return {};

Callers 2

startMethod · 0.45
getPortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected