27 #include <string_view>
83 address(uint8_t, uint8_t, uint8_t, uint8_t) noexcept;
92 address(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t,
93 uint8_t, uint8_t, uint8_t, uint8_t, uint8_t) noexcept;
132 inline address any = {0, 0, 0, 0},
broadcast = {255, 255, 255, 255},
loopback = {127, 0, 0, 1};
139 inline address any = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
140 broadcast = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
141 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
142 loopback = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1};
151 struct hash<libwire::address> {
std::string to_string() const noexcept
Convert address object to string representation.
bool is_invalid() const noexcept
Non-owning STL-like wrapper for raw memory.
address()=default
Uninitialized address value, is_invalid() = true.
IPv4/IPv6 address structure.
#define LIBWIRE_EXCEPTIONS_ENABLED_BOOL
Defines memory_view wrapper.
bool operator==(const address &) const noexcept
static const address invalid
std::array< uint8_t, 16 > parts
bool operator!=(const address &) const noexcept