|
ORE Studio 0.0.4
|
Network utilities and information. More...
Functions | |
| std::string | get_hostname () |
| Gets the hostname of the current machine. | |
| std::optional< std::string > | get_primary_mac_address () |
| Gets the primary MAC address of the machine. | |
| std::optional< std::string > | get_primary_mac_address_bytes () |
| Gets the primary MAC address as raw bytes. | |
| std::string | derive_machine_id () |
| Derives a stable machine identifier from hardware properties. | |
| std::uint16_t | derive_machine_id_hash () |
| Derives a 16-bit machine identifier suitable for embedding in IDs. | |
| std::int64_t | get_process_id () |
| Gets the current process ID. | |
Network utilities and information.
Contains platform-agnostic network utilities including network interface information and hostname resolution.
| std::string get_hostname | ( | ) |
Gets the hostname of the current machine.

| std::optional< std::string > get_primary_mac_address | ( | ) |
Gets the primary MAC address of the machine.
Returns the lexicographically first non-loopback MAC address to ensure stable ordering across reboots. The MAC address is formatted as a colon-separated hex string (e.g., "00:1a:2b:3c:4d:5e").

| std::optional< std::string > get_primary_mac_address_bytes | ( | ) |
Gets the primary MAC address as raw bytes.
Returns the lexicographically first non-loopback MAC address as a 6-byte string. This is useful for hashing without formatting overhead.

| std::string derive_machine_id | ( | ) |
Derives a stable machine identifier from hardware properties.
Combines hostname and MAC address to create a unique identifier that remains stable across reboots. The result is a hex-encoded hash.
| std::uint16_t derive_machine_id_hash | ( | ) |
Derives a 16-bit machine identifier suitable for embedding in IDs.
| std::int64_t get_process_id | ( | ) |
Gets the current process ID.