sP2P c++ STL *nix API  1.2
NAT traversal and peer-to-peer networking API providing all utilities needed to build peer-to-peer application straigth out of box
 All Classes Functions Variables Typedefs Enumerations Enumerator
sp2plib::DnsHelper Class Reference

Common DNS functions More...

#include <DnsHelper.h>

Public Member Functions

 DnsHelper ()
 Default constructor.
 
 ~DnsHelper ()
 Destructor.
 

Static Public Member Functions

static const char * GetHostName ()
 Gets host name.
 
static IP4Addressnew_GetHostAddresses (char *Host, int *out_arrayLenght=NULL)
 Creates a new get host addresses.
 
static IP4Address GetFirstHostAddress (char *Host)
 Gets the first host address.
 

Detailed Description

Common DNS functions

Constructor & Destructor Documentation

sp2plib::DnsHelper::DnsHelper ( )

Default constructor.

sp2plib::DnsHelper::~DnsHelper ( )

Destructor.

Member Function Documentation

static IP4Address sp2plib::DnsHelper::GetFirstHostAddress ( char *  Host)
static

Gets the first host address.

Parameters
HostIf non-null, the host.
Returns
The first host address.
static const char* sp2plib::DnsHelper::GetHostName ( )
static

Gets host name.

Returns
null if it fails, else the host name.
static IP4Address* sp2plib::DnsHelper::new_GetHostAddresses ( char *  Host,
int *  out_arrayLenght = NULL 
)
static

Creates a new get host addresses.

Parameters
Host[in,out] If non-null, the host.
out_arrayLenght(optional) [in,out] If non-null, the out array lenght.
Returns
null if it fails, else.

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