Home | All Classes | Grouped Classes | Index | Search

# Class CL_IPAddress

Socket name; container class for an IP address and port. More...

Derived from: none
Derived by: none
Group: Network (Sockets)

#include <ClanLib/network.h>

Construction:

CL_IPAddress | Constructs an IP address using INADDR_ANY and port 0.

Attributes:

get_addrinfo | Returns the internal addrinfo struct
get_address | Returns the IP address as a string.
get_port | Returns the IP port as a string.
operator == | Returns true if objects are the same.
operator < | Returns true if the other address is less.
operator > | Returns true if the other address is greater.

Operations:

set_address | Set the IP address using a hostname and port.
set_port | Set the IP port. Note, this will reset the hostname to the default value of any host.
dns_lookup | Do a DNS lookup on the IP address.
is_ipv4 | Check to see if the address has an IPv4 mapping is_ipv4() and is_ipv6() are not mutally exclusive An address can have both IPv4 and IPv6 mappings
is_ipv6 | Check to see if the address has an IPv6 mapping is_ipv4() and is_ipv6() are not mutally exclusive An address can have both IPv4 and IPv6 mappings

Detailed description:

!group=Network/Sockets! !header=network.h!
Questions or comments, write to the ClanLib mailing list.