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

Diff for /pegasus/src/Pegasus/Common/System.h between version 1.67 and 1.68

version 1.67, 2006/11/08 20:38:30 version 1.68, 2006/11/10 18:14:58
Line 147 
Line 147 
     static Boolean sameHost (const String & hostName);     static Boolean sameHost (const String & hostName);
  
     /**     /**
      *  Attempts to find the given IP address(32bit) on any of the local defined          Attempts to find the given IP address(32bit) on any of the local defined
      *  network interfaces          network interfaces
      */      */
     static Boolean isIpOnNetworkInterface(Uint32 inIP);     static Boolean isIpOnNetworkInterface(Uint32 inIP);
  
     /**     /**
      *  Attempts to resolve a given hostname          Attempts to resolve a given hostname
      *  this function possibly can take some as it can request information          this function possibly can take some as it can request information
      *  from the DNS          from the DNS
      *  
      *  Return: return value == true if successful, false if not successful          @param resolvedNameIP On successful hostname resolution, this output
      *          the IP address that was determined resides in resolvedNameIP          parameter contains the IP address that was determined.
      */          @return true if successful, false if not successful.
     static Boolean resolveHostNameAtDNS(const char* hostname, Uint32 * resolvedNameIP);       */
       static Boolean resolveHostNameAtDNS(
     /**          const char* hostname,
      *  Attempts to resolve a given IP address          Uint32* resolvedNameIP);
      *  this function possibly can take some as it can request information  
      *  from the DNS      /**
      *  Return: return value == true if successful, false if not successful          Attempts to resolve a given IP address
      *          the IP address that was determined resides in resolvedNameIP          this function possibly can take some as it can request information
           from the DNS
           @param resolvedIP On successful hostname resolution, this output
           parameter contains the IP address that was determined.
           @return true if successful, false if not successful.
      */      */
     static Boolean resolveIPAtDNS(Uint32 ip_addr, Uint32 * resolvedIP);     static Boolean resolveIPAtDNS(Uint32 ip_addr, Uint32 * resolvedIP);
  
     /**     /**
      * Bundling function used to determine if a given hostname or IP address          Bundling function used to determine if a given hostname or IP address
      * belongs to the local host          belongs to the local host
      * this function has the potential to take some time as it will possibly          this function has the potential to take some time as it will possibly
      * use the DNS          use the DNS
      */      */
     static Boolean isLocalHost(const String &hostName);     static Boolean isLocalHost(const String &hostName);
  
Line 193 
Line 197 
  
     /**     /**
     This function is used to encrypt the user's password.     This function is used to encrypt the user's password.
     The encryption is compatible with Apache's  password file (generated using          The encryption is compatible with Apache's password file (generated
     the htpasswd command )          using the htpasswd command)
  
     @param password     Password to be encrypted.     @param password     Password to be encrypted.
     @param salt         Two character string chosen from the set [a-zA-Z0-9./].     @param salt         Two character string chosen from the set [a-zA-Z0-9./].
Line 223 
Line 227 
  
     /**     /**
     This function returns the privileged user name on the system.     This function returns the privileged user name on the system.
   
     @return             the privileged user name     @return             the privileged user name
     */     */
     static String getPrivilegedUserName();     static String getPrivilegedUserName();
Line 233 
Line 236 
     of the specified user group.     of the specified user group.
  
     @param userName     User name to be verified.     @param userName     User name to be verified.
   
     @param groupName    User group name.     @param groupName    User group name.
  
     @return             true if the user is a member of the user group,          @return true if the user is a member of the user group, false otherwise.
                         false otherwise.          @throw InternalSystemError - If there is an error accessing the
           specified user or group information.
     @throw              InternalSystemError - If there is an error  
                         accessing the specified user or group information.  
     */     */
     static Boolean isGroupMember(const char* userName, const char* groupName);     static Boolean isGroupMember(const char* userName, const char* groupName);
  
Line 274 
Line 274 
  
     /**     /**
     This function is used to get the process ID of the calling process.     This function is used to get the process ID of the calling process.
   
     @return             Process ID     @return             Process ID
     */     */
     static Uint32 getPID();     static Uint32 getPID();


Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2