(file) Return to snmpDeliverTrap_emanate.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpDeliverTrap_emanate.cpp between version 1.25 and 1.26

version 1.25, 2007/09/07 18:05:46 version 1.26, 2007/09/07 20:08:39
Line 521 
Line 521 
     struct hostent* targetHostInfo;     struct hostent* targetHostInfo;
     struct in_addr in;     struct in_addr in;
  
   #if defined(PEGASUS_OS_LINUX)
     char hostEntryBuffer[8192];     char hostEntryBuffer[8192];
     struct hostent hostEntryStruct;     struct hostent hostEntryStruct;
     targetHostInfo = System::getHostByName(hostName,          int hostEntryErrno;
         &hostEntryStruct, hostEntryBuffer, sizeof (hostEntryBuffer));  
           gethostbyname_r(
               hostName,
               &hostEntryStruct,
               hostEntryBuffer,
               sizeof(hostEntryBuffer),
               &targetHostInfo,
               &hostEntryErrno);
   #elif defined(PEGASUS_OS_SOLARIS)
           char hostEntryBuffer[8192];
           struct hostent hostEntryStruct;
           int hostEntryErrno;
   
           targetHostInfo = gethostbyname_r(
               (char*)hostName,
               &hostEntryStruct,
               hostEntryBuffer,
               sizeof(hostEntryBuffer),
               &hostEntryErrno);
   #else
       targetHostInfo = gethostbyname(hostName);
   #endif
  
     if (targetHostInfo == NULL)     if (targetHostInfo == NULL)
     {     {


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2