C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::io::basp::header Struct Reference

The header of a Binary Actor System Protocol (BASP) message. More...

#include <header.hpp>

Public Member Functions

 header (message_type m_operation, uint8_t m_flags, uint32_t m_payload_len, uint64_t m_operation_data, actor_id m_source_actor, actor_id m_dest_actor)
 
bool has (uint8_t flag) const
 Queries whether this header has the given flag.
 

Public Attributes

message_type operation
 
uint8_t padding1 = 0
 
uint8_t padding2 = 0
 
uint8_t flags
 
uint32_t payload_len
 
uint64_t operation_data
 
actor_id source_actor
 
actor_id dest_actor
 

Static Public Attributes

static const uint8_t named_receiver_flag = 0x01
 Identifies a receiver by name rather than ID.
 
static const uint64_t config_server_id = 1
 Identifies the config server.
 
static const uint64_t spawn_server_id = 2
 Identifies the spawn server.
 

Related Symbols

(Note that these are not member symbols.)

constexpr size_t header_size
 Size of a BASP header in serialized form.
 
template<class Inspector >
bool inspect (Inspector &f, header &x)
 
CAF_IO_EXPORT bool valid (const header &hdr)
 Checks whether given BASP header is valid.
 

Detailed Description

The header of a Binary Actor System Protocol (BASP) message.

A BASP header consists of a routing part, i.e., source and destination, as well as an operation and operation data. Several message types consist of only a header.


The documentation for this struct was generated from the following files: