qpid::sys::SystemInfo Namespace Reference

Retrieve information about the system we are running on. More...


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.


Detailed Description

Retrieve information about the system we are running on.

Results may be dependent on OS/hardware.


Function Documentation

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().

Parameters:
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.


Generated on Thu Oct 16 13:38:42 2008 for Qpid by  doxygen 1.5.6