* Formats a sockaddr in a human-readable way. * * @returns A pair of host and service. */
| 101 | * @returns A pair of host and service. |
| 102 | */ |
| 103 | String Socket::GetHumanReadableAddress(const std::pair<String, String>& socketDetails) |
| 104 | { |
| 105 | std::ostringstream s; |
| 106 | s << "[" << socketDetails.first << "]:" << socketDetails.second; |
| 107 | return s.str(); |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Returns host and service as pair. |
nothing calls this directly
no outgoing calls
no test coverage detected