Functions | |
| long | concurrency () |
| Estimate available concurrency, e.g. | |
| bool | getLocalHostname (TcpAddress &address) |
| Get the local host name and set it in the specified TcpAddress. | |
| void | getLocalIpAddresses (uint16_t port, std::vector< Address > &addrList) |
| void | getSystemId (std::string &osName, std::string &nodeName, std::string &release, std::string &version, std::string &machine) |
| Retrieve system identifiers and versions. | |
Results may be dependent on OS/hardware.
| long qpid::sys::SystemInfo::concurrency | ( | ) |
Estimate available concurrency, e.g.
number of CPU cores. -1 means estimate not available on this platform.
| bool qpid::sys::SystemInfo::getLocalHostname | ( | TcpAddress & | address | ) |
Get the local host name and set it in the specified TcpAddress.
Returns false if it can't be obtained and sets errno to any error value.
| void qpid::sys::SystemInfo::getSystemId | ( | std::string & | osName, | |
| std::string & | nodeName, | |||
| std::string & | release, | |||
| std::string & | version, | |||
| std::string & | machine | |||
| ) |
Retrieve system identifiers and versions.
This is information that can generally be retrieved via POSIX uname().
| osName | Receives the OS name; e.g., GNU/Linux or Windows | |
| nodeName | Receives the nodename. This may or may not match the set hostname from getLocalHostname(). | |
| release | Receives the OS release identifier. | |
| version | Receives the OS release version (kernel, build, sp, etc.) | |
| machine | Receives the hardware type. |
1.5.6