Class to access hardware information.
#include <hardware_info.h>
|
| struct | NicInfo |
| | Datastructure to hold IP-capable Network Interface Card (NIC) information. More...
|
| |
|
| enum | FunapiProtocol {
kTcpPbuf = 0,
kTcpJson,
kUdpPbuf,
kUdpJson,
kHttpPbuf,
kHttpJson,
kWebSocketPbuf,
kWebSocketJson
} |
| |
|
typedef std::map< string, const NicInfo > | NicInfoMap |
| | NIC name to NIC information mapping.
|
| |
|
typedef std::map< FunapiProtocol, uint16_t > | ProtocolPortMap |
| |
|
| | DEPRECATED (static boost::asio::ip::address_v4 GetAwsPublicIpv4()) |
| | Returns a public IP if the server is on AWS. More...
|
| |
◆ DEPRECATED()
| fun::HardwareInfo::DEPRECATED |
( |
static boost::asio::ip::address_v4 |
GetAwsPublicIpv4() | ) |
|
◆ GetExternalHostname()
| static std::string fun::HardwareInfo::GetExternalHostname |
( |
| ) |
|
|
static |
The hostname is obatined from the external_ip_resolvers" in MANIFEST.json
◆ GetExternalIp()
| static boost::asio::ip::address fun::HardwareInfo::GetExternalIp |
( |
| ) |
|
|
static |
The public IP is obtained from the "external_ip_resolvers" in MANIFEST.json or through gflag.
◆ GetExternalPorts()
| static ProtocolPortMap fun::HardwareInfo::GetExternalPorts |
( |
| ) |
|
|
static |
- Returns
- ProtocolPortMap instance.
◆ GetNicInfo()
| static const NicInfoMap& fun::HardwareInfo::GetNicInfo |
( |
| ) |
|
|
static |