ARC SDK
Data Structures | Public Member Functions | Static Public Member Functions
Arc::HostnameResolver Class Reference

Defines interface for accessing filesystems. More...

#include <arc/HostnameResolver.h>

Data Structures

struct  header_t
 Internal struct used for communication between processes. More...
 
class  SockAddr
 

Public Member Functions

 HostnameResolver (void)
 New HostnameResolver object. More...
 
 ~HostnameResolver (void)
 Shuts down any spawned executable. More...
 
bool ping (void)
 Check if communication with proxy works. More...
 
int hr_resolve (std::string const &node, std::string const &service, bool local, std::list< SockAddr > &addrs)
 Performs resolution of provided host name. More...
 
int geterrno ()
 Get errno of last operation. Every operation resets errno. More...
 
 operator bool (void)
 Returns true if this instance is in useful condition. More...
 
bool operator! (void)
 Returns true if this instance is not in useful condition. More...
 

Static Public Member Functions

static HostnameResolverAcquire (void)
 Constructor which takes already existing object from global cache. More...
 
static void Release (HostnameResolver *fa)
 Destructor which returns object into global cache. More...
 
static void testtune (void)
 Special method for using in unit tests. More...
 

Detailed Description

Defines interface for accessing filesystems.

This class performs host name respolution through a proxy executable.

Constructor & Destructor Documentation

◆ HostnameResolver()

Arc::HostnameResolver::HostnameResolver ( void  )

New HostnameResolver object.

◆ ~HostnameResolver()

Arc::HostnameResolver::~HostnameResolver ( void  )

Shuts down any spawned executable.

Member Function Documentation

◆ Acquire()

static HostnameResolver* Arc::HostnameResolver::Acquire ( void  )
static

Constructor which takes already existing object from global cache.

◆ geterrno()

int Arc::HostnameResolver::geterrno ( )
inline

Get errno of last operation. Every operation resets errno.

◆ hr_resolve()

int Arc::HostnameResolver::hr_resolve ( std::string const &  node,
std::string const &  service,
bool  local,
std::list< SockAddr > &  addrs 
)

Performs resolution of provided host name.

◆ operator bool()

Arc::HostnameResolver::operator bool ( void  )
inline

Returns true if this instance is in useful condition.

◆ operator!()

bool Arc::HostnameResolver::operator! ( void  )
inline

Returns true if this instance is not in useful condition.

◆ ping()

bool Arc::HostnameResolver::ping ( void  )

Check if communication with proxy works.

◆ Release()

static void Arc::HostnameResolver::Release ( HostnameResolver fa)
static

Destructor which returns object into global cache.

◆ testtune()

static void Arc::HostnameResolver::testtune ( void  )
static

Special method for using in unit tests.


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