version 1.12, 2003/07/22 21:31:45
|
version 1.13, 2003/08/06 13:45:17
|
|
|
struct hostent *targetHostInfo; | struct hostent *targetHostInfo; |
struct in_addr in; | struct in_addr in; |
| |
|
#ifdef PEGASUS_OS_SOLARIS |
|
#define HOSTENT_BUFF_SIZE 8192 |
|
char buf[HOSTENT_BUFF_SIZE]; |
|
struct hostent h_result; |
|
int h_errorp; |
|
targetHostInfo=gethostbyname_r(hostName, &h_result, buff, |
|
HOSTENT_BUFF_SIZE, &h_errorp); |
|
#else |
targetHostInfo = gethostbyname(hostName); | targetHostInfo = gethostbyname(hostName); |
|
#endif |
| |
if (targetHostInfo == NULL) | if (targetHostInfo == NULL) |
{ | { |