ARC SDK
|
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 HostnameResolver * | Acquire (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... | |
Defines interface for accessing filesystems.
This class performs host name respolution through a proxy executable.
Arc::HostnameResolver::HostnameResolver | ( | void | ) |
New HostnameResolver object.
Arc::HostnameResolver::~HostnameResolver | ( | void | ) |
Shuts down any spawned executable.
|
static |
Constructor which takes already existing object from global cache.
|
inline |
Get errno of last operation. Every operation resets errno.
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.
|
inline |
Returns true if this instance is in useful condition.
|
inline |
Returns true if this instance is not in useful condition.
bool Arc::HostnameResolver::ping | ( | void | ) |
Check if communication with proxy works.
|
static |
Destructor which returns object into global cache.
|
static |
Special method for using in unit tests.