IPv4 address class.
using size_type = size_tAlias to std::size_t.
using const_iterator = const_pointerConstant iterator.
using iterator = pointerIterator.
using reference = value_type &Reference to octet.
using pointer = value_type *Pointer to octet.
using rep_type = addr4_typeUnsigned 4-byte integer type.
using value_type = u8Octet type.
char _bytes[4]value_type _octets[4]inet4_type _addressaddr4_type _integerconst typedef value_type & const_referenceConstant reference to octet.
const typedef value_type * const_pointerConstant pointer to octet.
from_prefix(prefix_type prefix) -> ipv4_addressCreate network mask from network prefix.
size() -> constexpr static size_typeGet the number of octets.
position(ipv4_address netmask) const -> constexpr addr4_type
Compute address position in the subnetwork specified by netmask.
to_prefix() const -> prefix_typeReturn network prefix assuming that this address is network mask.
clear() -> voidback() const -> value_typeGet last octet.
back() -> referenceGet last octet.
front() const -> value_typeGet first octet.
front() -> referenceGet first octet.
end() const -> const_iteratorGet iterator to the end of octet array.
end() -> iteratorGet iterator to the end of octet array.
begin() const -> const_iteratorGet iterator to the beginning of octet array.
begin() -> iteratorGet iterator to the beginning of octet array.
data() const -> const_pointerGet pointer to the first octet.
data() -> pointerGet pointer to the first octet.
operator[](size_type i) const -> constexpr value_typeGet specified octet.
operator[](size_type i) -> referenceGet reference to the specified octet.
operator!() const -> constexpr boolReturns true if integer representations is nought.
operator bool() const -> constexprexplicitReturns true if integer representations is non-nought.
operator!=(ipv4_address rhs) const -> constexpr boolCompare address integer representations.
operator==(ipv4_address rhs) const -> constexpr boolCompare address integer representations.
operator>=(const ipv4_address & rhs) const -> constexpr booloperator>(const ipv4_address & rhs) const -> constexpr booloperator<=(const ipv4_address & rhs) const -> constexpr booloperator<(const ipv4_address & rhs) const -> constexpr boolCompare address integer representations.
operator const inet4_type &() const -> constexpr
Automatically cast to in_addr system type.
rep() const -> constexpr addr4_typeGet integer representation of the address.
ipv4_address(const char * rhs)explicitipv4_address(const sockinet4_type & rhs)
Construct IPv4 address from sockaddr system type.
ipv4_address(value_type o1, value_type o2, value_type o3, value_type o4) -> constexprConstruct IPv4 address manually specifying each octet.
ipv4_address(const inet4_type & rhs) -> constexprexplicit
Construct IPv4 address from in_addr system type.
ipv4_address(const ipv4_address & rhs) -> constexprCopy-constructor.
ipv4_address(addr4_type rhs) -> constexprexplicitConstruct IPv4 address from integer type.
ipv4_address() -> constexprSpecialisation of ipaddr_traits for ipv4_address.
using socket_address_type = ipv4_socket_addressSocket address type.
using value_type = ipv4_address::value_typeOctet type.
constexpr const sa_family_type familyIP-address family.
constexpr const value_type loopback_first_octetFirst octet of loopback address.
port(const socket_address & rhs) -> port_typeGet IPv4 port from socket_address.
address(const socket_address & rhs) -> ipv4_addressGet IPv4 address from socket_address.
widearea_mask() -> constexpr ipv4_addressWide area network mask.
loopback_mask() -> constexpr ipv4_addressLoopback network mask.
localhost() -> constexpr ipv4_addressLocalhost address.
Specialisation of std::hash for sys::ipv4_address.
public std::hash< sys::ipv4_address::rep_type >using argument_type = sys::ipv4_addressHash function argument type.
using result_type = size_tHash function return value type.
operator()(const argument_type & rhs) const -> result_typeReturn hash of 8-byte integer that represents the address.
operator<<(std::ostream & out, ipv4_address rhs) -> std::ostream &Print textual representation of the address.
operator>>(std::istream & in, ipv4_address & rhs) -> std::istream &Parse textual representation of the address.