version 1.91, 2012/07/03 15:23:11
|
version 1.92, 2012/09/05 11:10:33
|
|
|
char* buf = 0, | char* buf = 0, |
size_t buflen = 0); | size_t buflen = 0); |
| |
#if defined(PEGASUS_OS_ZOS) || \ |
|
defined(PEGASUS_OS_VMS) || \ |
|
defined(PEGASUS_ENABLE_IPV6) |
|
| |
// The following 2 methods are wrappers around system functions | // The following 2 methods are wrappers around system functions |
// getaddrinfo/getnameinfo. | // getaddrinfo/getnameinfo. |
// In addition to calling corresponding system functions, these | // In addition to calling corresponding system functions, these |
// methods introduce re-tries on EAI_AGAIN error returns. | // methods introduce re-tries on EAI_AGAIN error returns. |
|
// |
|
// Callers are expected to call freeaddrinfo when using System::getAddrInfo |
static int getAddrInfo( | static int getAddrInfo( |
const char *hostname, | const char *hostname, |
const char *servname, | const char *servname, |
|
|
size_t servlen, | size_t servlen, |
int flags); | int flags); |
| |
#endif |
|
|
|
// Gets IP address assosiated with hostName. af indicates the | // Gets IP address assosiated with hostName. af indicates the |
// type of address (ipv4 or ipv6) returned. | // type of address (ipv4 or ipv6) returned. |
static Boolean getHostIP(const String &hostName, int *af, String &hostIP); | static Boolean getHostIP(const String &hostName, int *af, String &hostIP); |