A node ID consists of a host ID and process ID.
More...
#include <node_id.hpp>
Inherits comparable< node_id >, and comparable< node_id, invalid_node_id_t >.
|
class | data |
| A reference counted container for host ID and process ID. More...
|
|
|
static constexpr size_t | host_id_size = 20 |
| A 160 bit hash (20 bytes).
|
|
A node ID consists of a host ID and process ID.
The host ID identifies the physical machine in the network, whereas the process ID identifies the running system-level process on that machine.
caf::node_id::node_id |
( |
uint32_t |
process_id, |
|
|
const std::string & |
hash |
|
) |
| |
Creates this from process_id
and hash
.
- Parameters
-
process_id | System-wide unique process identifier. |
hash | Unique node id as hexadecimal string representation. |
caf::node_id::node_id |
( |
uint32_t |
process_id, |
|
|
const host_id_type & |
node_id |
|
) |
| |
Creates this from process_id
and hash
.
- Parameters
-
process_id | System-wide unique process identifier. |
node_id | Unique node id. |
Identifies the host system.
- Returns
- A hash build from the MAC address of the first network device and the UUID of the root partition (mounted in "/" or "C:").
uint32_t caf::node_id::process_id |
( |
| ) |
const |
Identifies the running process.
- Returns
- A system-wide unique process identifier.
std::string to_string |
( |
const node_id & |
what | ) |
|
|
related |
The documentation for this class was generated from the following files:
- libcaf_core/caf/node_id.hpp
- libcaf_core/caf/string_serialization.hpp