|
Public Types |
enum | Type { INTERNET,
INTRANET,
RESERVED
} |
Public Member Functions |
| Url (const in_addr &addr, bool lazy=true) throw (net_error) |
| Url (const std::string &hostname, bool lazy=true) throw (net_error) |
virtual | ~Url () |
| operator const in_addr & () const |
std::string | ip () const |
std::string | hostname () const |
const std::list< std::string > & | hostnames () const |
const std::list< in_addr > & | ips () const |
bool | operator== (const Url &other) const |
bool | similar (const in_addr &addr) const |
Static Public Member Functions |
static bool | inNet (const in_addr &addr, const in_addr &netmask, unsigned char netwidth) |
static bool | inNet (const in_addr &addr, const UrlRange &range) |
static std::string | format (DWORD dwAddress) throw (std::runtime_error) |
static std::string | format (const in_addr &addr) throw (std::runtime_error) |
Public Attributes |
enum Url::Type | type |
Static Public Attributes |
static const char * | NORDNS = "[No rDns configured]" |
Private Member Functions |
void | assignHost (const hostent *host) |
hostent * | assignIP (unsigned long ip, bool lazy=true) throw (net_error) |
hostent * | retrieveHost (const in_addr *add) const throw (net_error) |
void | setType (const in_addr &addr) |
Private Attributes |
std::list< in_addr > | m_addresses |
std::list< std::string > | m_hostnames |
bool | bLazy |