version 1.33, 2005/11/10 18:57:26
|
version 1.34, 2005/11/15 14:40:29
|
|
|
#endif | #endif |
{ | { |
::memcpy( &inaddr, phostent->h_addr,4); | ::memcpy( &inaddr, phostent->h_addr,4); |
#ifdef PEGASUS_PLATFORM_ZOS_ZSERIES_IBM |
#if defined(PEGASUS_OS_OS400) |
char * gottenIPAdress = NULL; |
|
gottenIPAdress = ::inet_ntoa( inaddr ); |
|
__etoa(gottenIPAdress); |
|
if (gottenIPAdress != NULL) |
|
{ |
|
ipAddress.assign(gottenIPAdress); |
|
} |
|
#elif defined(PEGASUS_OS_OS400) |
|
char * gottenIPAdress = NULL; | char * gottenIPAdress = NULL; |
gottenIPAdress = ::inet_ntoa( inaddr ); | gottenIPAdress = ::inet_ntoa( inaddr ); |
| |
|
|
| |
#ifdef PEGASUS_OS_OS400 | #ifdef PEGASUS_OS_OS400 |
Uint32 tmp_addr = inet_addr(ebcdicHost); | Uint32 tmp_addr = inet_addr(ebcdicHost); |
#elif defined(PEGASUS_OS_ZOS) |
|
Uint32 tmp_addr = inet_addr_ebcdic((char *)hostname); |
|
#else | #else |
Uint32 tmp_addr = inet_addr((char *) hostname); | Uint32 tmp_addr = inet_addr((char *) hostname); |
#endif | #endif |