xbmc
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NPT_IpAddress Class Reference
Collaboration diagram for NPT_IpAddress:
Collaboration graph
[legend]

Public Types

enum  Type { IPV4, IPV6 }
 

Public Member Functions

 NPT_IpAddress (Type type)
 
 NPT_IpAddress (unsigned long address)
 
 NPT_IpAddress (unsigned char a, unsigned char b, unsigned char c, unsigned char d)
 
 NPT_IpAddress (Type type, const unsigned char *address, unsigned int size, NPT_UInt32 scope_id=0)
 
Type GetType () const
 
NPT_UInt32 GetScopeId () const
 
NPT_Result ResolveName (const char *name, NPT_Timeout timeout=NPT_TIMEOUT_INFINITE)
 
NPT_Result Parse (const char *name)
 
NPT_Result Set (unsigned long address)
 
NPT_Result Set (const unsigned char bytes[4])
 
NPT_Result Set (const unsigned char *bytes, unsigned int size, NPT_UInt32 scope_id=0)
 
const unsigned char * AsBytes () const
 
unsigned long AsLong () const
 
NPT_String ToString () const
 
NPT_String ToUrlHost () const
 
bool IsUnspecified () const
 
bool IsLooppack () const
 
bool IsV4Compatible () const
 
bool IsV4Mapped () const
 
bool IsLinkLocal () const
 
bool IsSiteLocal () const
 
bool IsUniqueLocal () const
 
bool IsMulticast () const
 
bool operator== (const NPT_IpAddress &other) const
 

Public Attributes

NPT_String m_HostName
 

Static Public Attributes

static const NPT_IpAddress Any
 
static const NPT_IpAddress Loopback
 

The documentation for this class was generated from the following files: