#include <Common.h>
Public Member Functions | |
Address () | |
ctor | |
Address (const std::string &addressColonPort) | |
ctor - can take an address in either "1.2.3.4:56", "1.2.3.4", "name:port", or "name" format | |
Address (const std::string &addressString, uint16 portNumber) | |
ctor - takes an address in the form "1.2.3.4" or "name" and a numeric port value | |
std::string | GetIPString () const |
Retrieves a string that represents the IP address. | |
uint | GetIP () const |
Retrieves the packed IP. | |
std::string | GetIPPortString () const |
Retrieves a string that represents the IP address and port in "1.2.3.4:56" format. | |
std::string | GetNameString () const |
Retrieves the string that represents the name of the address. A DNS lookup may be performed. | |
std::string | GetNamePortString () const |
Retrieves a string that represents the name and port in "name.net:56" format. A DNS lookup may be performed. | |
uint16 | GetPort () const |
Retrieves the port for this address. | |
void | SetAddress (const std::string &addressString) |
Sets the address - can take an address in either "1.2.3.4:56", "1.2.3.4", "name:port", or "name" format. A DNS lookup may be performed. | |
void | SetIP (uint32 ipValue) |
Sets the packed IP. | |
void | SetPort (uint16 portNumber) |
Sets the port for this address. | |
bool | operator== (const Address &o) const |
comparison |