60 bool operator==(const
endpoint& rhs) const noexcept;
61 bool operator!=(const
endpoint& rhs) const noexcept;
This file defines universal address structure for both IPv4 and IPv6 network addresses.
endpoint(const address &addr, uint16_t port)
IPv4/IPv6 address structure.
#define LIBWIRE_EXCEPTIONS_ENABLED_BOOL
Defines memory_view wrapper.
std::string to_string() const noexcept
Convert endpoint type to string representation.
static const endpoint invalid
bool is_invalid() const noexcept
Returns true if endpoint struct have invalid contents because of c-tor failure.