version 1.67, 2006/11/08 20:38:30
|
version 1.68, 2006/11/10 18:14:58
|
|
|
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); |
| |
|
|
| |
/** | /** |
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./]. |
|
|
| |
/** | /** |
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(); |
|
|
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); |
| |
|
|
| |
/** | /** |
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(); |