| 134 | } |
| 135 | |
| 136 | std::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 | |
| 151 | const std::string& TCPConnectionImpl::getAddress() const { |
| 152 | return _address; |
nothing calls this directly
no test coverage detected