This class gives access to information about the Wiretap client host, and provides methods and constants for specifying standard operating systems. More...
Public Types | |
enum | OsType { OS_UNKNOWN = 0, OS_IRIX = 1, OS_LINUX = 2, OS_WINNT = 3, OS_MACOSX = 4 } |
Static Public Member Functions | |
static WireTapStr | getGroupId () |
Gets the group id/name of the current process. More... | |
static WireTapStr | getHostName () |
Gets the name of the host machine on which the Wiretap client is running. More... | |
static WireTapOS::OsType | getOSType () |
Gets the operating system running on the Wiretap client host. More... | |
static WireTapStr | getOSVersion () |
Gets the version of the operating system running on the Wiretap client host. More... | |
static WireTapStr | getUserId () |
Gets the user id of the current process. More... | |
static bool | isLocalIP (const char *ip) |
Determines if the IP or hostname specified references the local host. (e.g. 127.0.0.1, ::1, localhost, <host name>, <host IP>, etc) More... | |
static bool | isLoopBackIP (const char *ip) |
Determines if the IP specified is a local only loopback IP address. (e.g. 127.0.0.1, ::1, localhost, etc) More... | |
static const char * | OS_TYPE_IRIX_STR () |
static const char * | OS_TYPE_LINUX_STR () |
static const char * | OS_TYPE_MACOSX_STR () |
static const char * | OS_TYPE_UNKNOWN_STR () |
static const char * | OS_TYPE_WINNT_STR () |
static const char * | OsTypeStr (WireTapOS::OsType osType) |
Converts an integer constant (defined in the WireTapOS.OsType enumeration) to a string describing the operating system. More... | |
static void | setUserId (const char *id) |
Sets the user id of the current process. This id will be passed onto the remote Wiretap server for each command. No authentication is performed. Set to 0 or the empty string to reset to the user's process login ID. More... | |
static WireTapOS::OsType | strToOsType (const char *osString) |
Converts a string to an integer constant defined in the WireTapOS.OsType enumeration. More... | |
This class gives access to information about the Wiretap client host, and provides methods and constants for specifying standard operating systems.
This class provides static methods that give access to information about the host machine on which the Wiretap client is running (such as its operating system, IP address, and name).
The class includes an enumeration of constants that can be used to specify standard operating systems, as well as static methods that return strings for the standard operating systems. It also includes static methods for converting the constants to strings (WireTapOS.OsTypeStr) and vice versa (WireTapOS.strToOsType).
enum WireTapOS::OsType |
|
static |
Gets the group id/name of the current process.
|
static |
Gets the name of the host machine on which the Wiretap client is running.
|
static |
Gets the operating system running on the Wiretap client host.
|
static |
Gets the version of the operating system running on the Wiretap client host.
|
static |
Gets the user id of the current process.
|
static |
Determines if the IP or hostname specified references the local host. (e.g. 127.0.0.1, ::1, localhost, <host name>, <host IP>, etc)
|
static |
Determines if the IP specified is a local only loopback IP address. (e.g. 127.0.0.1, ::1, localhost, etc)
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Converts an integer constant (defined in the WireTapOS.OsType enumeration) to a string describing the operating system.
osType | An integer constant (defined in WireTapOS.OsType) that represents a standard operating system. |
|
static |
Sets the user id of the current process. This id will be passed onto the remote Wiretap server for each command. No authentication is performed. Set to 0 or the empty string to reset to the user's process login ID.
|
static |
Converts a string to an integer constant defined in the WireTapOS.OsType enumeration.
osString | An input parameter. A string describing an operating system. |