![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Socket name; container class for an IP address and port.
Contained in: global
Derived from:
none
Derived by:
none
Group: Network (Sockets)
#include <ClanLib/network.h>
public function member index: |
||
Construction: |
||
CL_IPAddress | (); | |
CL_IPAddress | (const std::string& port); | |
CL_IPAddress | (const std::string& hostname, const std::string& port); | |
CL_IPAddress | (const CL_IPAddress& copy); | |
Attributes: |
||
void | get_addrinfo | (int type, struct sockaddr& addr, int& len) const; |
std::string | get_address | () const; |
std::string | get_port | () const; |
bool | operator == | (const CL_IPAddress& other_instance) const; |
bool | operator < | (const CL_IPAddress& other_instance) const; |
bool | operator > | (const CL_IPAddress& other_instance) const; |
Operations: |
||
void | set_address | (const std::string& hostname); |
void | set_address | (const std::string& hostname, const std::string& port); |
void | set_port | (const std::string& port); |
std::string | dns_lookup | () const; |
<p>This is used for sorting
purposes (eg. if you use a std::map<CL_IPAddress, CL_Socket>), and sorts
the address based on lowest IP number address.</p>
<p>This is used for sorting
purposes (eg. if you use a std::map<CL_IPAddress, CL_Socket>), and sorts
the address based on lowest IP number address.</p>