Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Url Class Reference

#include <Url.h>

List of all members.

Public Types


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

Member Enumeration Documentation

enum Url::Type


Constructor & Destructor Documentation

Url::Url const in_addr &  addr,
bool  lazy = true
throw (net_error)

Url::Url const std::string &  hostname,
bool  lazy = true
throw (net_error)

Url::~Url  )  [virtual]

Member Function Documentation

void Url::assignHost const hostent *  host  )  [private]

hostent * Url::assignIP unsigned long  ip,
bool  lazy = true
throw (net_error) [private]

std::string Url::format const in_addr &  addr  )  throw (std::runtime_error) [static]

std::string Url::format DWORD  dwAddress  )  throw (std::runtime_error) [static]

string Url::hostname  )  const

const std::list<std::string>& Url::hostnames  )  const

bool Url::inNet const in_addr &  addr,
const UrlRange range

bool Url::inNet const in_addr &  addr,
const in_addr &  netmask,
unsigned char  netwidth

string Url::ip  )  const

const std::list< in_addr > & Url::ips  )  const

Url::operator const in_addr &  )  const

bool Url::operator== const Url other  )  const

hostent * Url::retrieveHost const in_addr *  add  )  const throw (net_error) [private]

void Url::setType const in_addr &  addr  )  [private]

bool Url::similar const in_addr &  addr  )  const

Member Data Documentation

bool Url::bLazy [mutable, private]

std::list<in_addr> Url::m_addresses [private]

std::list<std::string> Url::m_hostnames [private]

const char * Url::NORDNS = "[No rDns configured]" [static]

enum Url::Type Url::type

The documentation for this class was generated from the following files:
Generated on Thu Jun 16 00:13:15 2005 for Netlib for Abuse! by  doxygen 1.4.3