<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_IPAddress - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_IPAddress</h1> <p> Socket name; container class for an IP address and port. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Network (Sockets)</p> <p> #include <ClanLib/network.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_IPAddress__CL_IPAddress.html">CL_IPAddress</a></p></td><td valign=top><p> Constructs an IP address using INADDR_ANY and port 0.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_IPAddress__get_addrinfo.html">get_addrinfo</a></p></td><td valign=top><p> Returns the internal addrinfo struct</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__get_address.html">get_address</a></p></td><td valign=top><p> Returns the IP address as a string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__get_port.html">get_port</a></p></td><td valign=top><p> Returns the IP port as a string.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__operator == .html">operator == </a></p></td><td valign=top><p> Returns true if objects are the same.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__operator < .html">operator < </a></p></td><td valign=top><p> Returns true if the other address is less.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__operator > .html">operator > </a></p></td><td valign=top><p> Returns true if the other address is greater.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_IPAddress__set_address.html">set_address</a></p></td><td valign=top><p> Set the IP address using a hostname and port.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__set_port.html">set_port</a></p></td><td valign=top><p> Set the IP port. Note, this will reset the hostname to the default value of any host.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__dns_lookup.html">dns_lookup</a></p></td><td valign=top><p> Do a DNS lookup on the IP address.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__is_ipv4.html">is_ipv4</a></p></td><td valign=top><p> 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</p></td></tr><tr><td width=30% valign=top><p><a href="CL_IPAddress__is_ipv6.html">is_ipv6</a></p></td><td valign=top><p> 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</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Network/Sockets! !header=network.h! <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->