eckit::net::IPAddress class

Public static functions

static auto myIPAddress() -> IPAddress
static auto hostAddress(const std::string& hostname) -> IPAddress

Constructors, destructors, conversion operators

IPAddress(const in_addr& address)
IPAddress(const std::string&)
IPAddress(const char*)

Public functions

auto asString() const -> std::string
auto address() const -> const in_addr&
auto operator==(const IPAddress& other) const -> bool

Friends

auto operator<<(std::ostream& s, const IPAddress& p) -> std::ostream&