the head of every message on a service connection, its data behind it: a request, its reply or the service's broadcast
More...
#include <dx_service_message.h>
|
| static const message* | check(const void* data, size_t size) noexcept |
| | the message the bytes are, where they hold one whole: its stated sizes within the bytes and the bound
|
| static size_t | reply(uint32_t ioctl, const void* data, size_t size, void* out, size_t size_out) |
| | the reply's data taken where it answers the request: its size, its result thrown
|
| static std::vector<uint8_t> | request(uint32_t ioctl, const void* data, size_t size, size_t out) |
| | a request whole: its data behind its head, the most its reply may carry stated
|
the head of every message on a service connection, its data behind it: a request, its reply or the service's broadcast
Every side reads a message as untrusted bytes: trivial types alone, byte identical in every process - 32 and 64 bit, any architecture -, its sizes checked before anything of it is read (check()).
◆ check()
| const message* dx::service::message::check(const void* data, size_t size) |
|
inlinestaticnoexcept |
the message the bytes are, where they hold one whole: its stated sizes within the bytes and the bound
◆ data()
| const void* dx::service::message::data() const |
|
inline |
◆ data_size()
| size_t dx::service::message::data_size() const |
|
inline |
◆ reply()
| size_t dx::service::message::reply(uint32_t ioctl, const void* data, size_t size, void* out, size_t size_out) |
|
inlinestatic |
the reply's data taken where it answers the request: its size, its result thrown
◆ request()
| std::vector<uint8_t> dx::service::message::request(uint32_t ioctl, const void* data, size_t size, size_t out) |
|
inlinestatic |
a request whole: its data behind its head, the most its reply may carry stated
◆ ioctl
what is asked, the reply carrying it back; dx::ioctl::listen from the service: its broadcast
◆ limit
| uint32_t dx::service::message::limit{1u<< 20} |
|
staticconstexpr |
◆ out
the request: the most its reply may carry; the reply: what it carries
◆ result
◆ size
the whole message, its head included
The documentation for this struct was generated from the following file: