mn_basic_ip_address.hpp
Go to the documentation of this file.
Wrapper class around lwip implementation of a ip address.
Definition: mn_basic_ip_address.hpp:65
basic_ip_address(address_family fam)
Constructor.
Definition: mn_basic_ip_address.hpp:70
virtual uint8_t * get_bytes()=0
Get the ip address as byte array.
virtual bool is_broadcast()=0
Is the this address a broadcast address?
virtual const char * to_string()=0
Returns a string containing a representation of the address in presentation format.
virtual int length() const =0
Returns the length in bytes of the ip address.
virtual bool is_loopback()=0
Is the this address a loopback address?
address_family m_aFamily
A saved / cached copy of the address family type of this socket.
Definition: mn_basic_ip_address.hpp:115
virtual void swap(basic_ip_address &rhs) noexcept
Definition: mn_basic_ip_address.hpp:108
virtual address_family get_family()
Get the address family (AF_INET or AF_INET6) of the address.
Definition: mn_basic_ip_address.hpp:100
Basic algorithmens This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniT...
address_family
Defines socket address types for creating.
Definition: mn_net_types.hpp:41
Definition: mn_allocator_typetraits.hpp:25