MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetHumanReadableAddress

Method GetHumanReadableAddress

lib/base/socket.cpp:103–108  ·  view source on GitHub ↗

* Formats a sockaddr in a human-readable way. * * @returns A pair of host and service. */

Source from the content-addressed store, hash-verified

101 * @returns A pair of host and service.
102 */
103String 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected