(file) Return to SystemUnix.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SystemUnix.cpp between version 1.29 and 1.30

version 1.29, 2002/03/19 23:13:25 version 1.30, 2002/03/21 18:49:58
Line 267 
Line 267 
     return hostname;     return hostname;
 } }
  
   String System::getFullyQualifiedHostName ()
   {
   #ifdef PEGASUS_OS_HPUX
       char hostName [MAXHOSTNAMELEN];
       struct hostent *he;
       String fqName;
   
       if (gethostname (hostName, MAXHOSTNAMELEN) != 0)
       {
           return String::EMPTY;
       }
   
       if (he = gethostbyname (hostName))
       {
          strcpy (hostName, he->h_name);
       }
   
       fqName.assign (hostName);
   
       return fqName;
   #else
       //
       //  ATTN: Implement this method to return the fully qualified host name
       //
       return String::EMPTY;
   #endif
   }
   
   String System::getSystemCreationClassName ()
   {
   #ifdef PEGASUS_OS_HPUX
       return "CIM_ComputerSystem";
   #else
       //
       //  ATTN: Implement this method to return the system creation class name
       //
       return String::EMPTY;
   #endif
   }
   
 Uint32 System::lookupPort( Uint32 System::lookupPort(
     const char * serviceName,     const char * serviceName,
     Uint32 defaultPort)     Uint32 defaultPort)


Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2