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

Method resolveAddress

valdi/src/valdi/runtime/Debugger/TCPConnectionImpl.cpp:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136std::string TCPConnectionImpl::resolveAddress() {
137 boost::system::error_code ec;
138 auto endpoint = _socket.remote_endpoint(ec);
139 if (ec.failed()) {
140 return errorFromBoostError(ec).toString();
141 }
142
143 auto address = endpoint.address().to_string(ec);
144 if (ec.failed()) {
145 return errorFromBoostError(ec).toString();
146 }
147
148 return address;
149}
150
151const std::string& TCPConnectionImpl::getAddress() const {
152 return _address;

Callers

nothing calls this directly

Calls 5

errorFromBoostErrorFunction · 0.85
failedMethod · 0.80
addressMethod · 0.80
toStringMethod · 0.65
to_stringMethod · 0.45

Tested by

no test coverage detected