|
| bool | fray::message::isCommand (const Prefix &prefix, F_ulong id) |
| | Tests whether a prefix identifies a command.
|
| bool | fray::message::isNotice (const Prefix &prefix, F_ulong id) |
| | Tests whether a prefix identifies a protocol notification.
|
| bool | fray::message::isControl (const Prefix &prefix) |
| | Identifies readiness and health control frames.
|
| bool | fray::message::isConsoleCommand (const Prefix &prefix) |
| | Identifies commands the Console shows as entries. Control traffic and the Console's own log and entry traffic are left out, or every line would produce another entry.
|
| bool | fray::message::wantsLog (std::uint32_t flags) |
| | Tests whether a message's header flags leave it in the disk log.
|
| bool | fray::message::wantsConsole (std::uint32_t flags) |
| | Tests whether a message's header flags leave it in the Console.
|
| bool | fray::message::isTracked (const Prefix &prefix, std::uint32_t flags) |
| | Identifies messages the Engine router logs, shows in the Console, or both.
|
| void | fray::message::detail::put32 (F_uchar *out, F_ulong v) |
| | Writes a 32-bit value as 4 big-endian bytes.
|
| F_ulong | fray::message::detail::get32 (const F_uchar *in) |
| | Reads 4 big-endian bytes as a 32-bit value.
|
| void | fray::message::encodePrefix (const Prefix &p, F_uchar *out) |
| | Serializes a prefix into its PREFIX_SIZE-byte big-endian wire form.
|
| F_err | fray::message::decodePrefix (const F_uchar *data, size_t size, Prefix &out) |
| | Parses and validates a prefix from received bytes.
|
| std::shared_ptr< const std::vector< F_uchar > > | fray::message::assignUid (const std::shared_ptr< const std::vector< F_uchar > > &frame, Prefix &prefix) |
| | Assigns a random 128-bit UID to a frame whose prefix does not have one. Existing UIDs are preserved; input frame bytes remain unchanged.
|
| F_err | fray::message::buildFrame (Prefix prefix, const Header &header, const F_uchar *payload, size_t payloadSize, std::vector< F_uchar > &out) |
| | Builds a complete frame (prefix + protobuf header + payload) into a byte vector. The prefix's length and headerLength fields are filled in from the header and payload.
|
| const char * | fray::message::processName (ProcessKind kind) |
| | Human-readable name of a process kind, also used as the header sender/destination name.
|
| std::string | fray::message::processInstanceName (ProcessKind kind, std::uint32_t id) |
| | Names a process instance for readiness diagnostics.
|
| uint64_t | fray::message::nextMessageId () |
| | Returns the next message ID. Message IDs are unique per sender, so every engine message takes its ID from here. Thread-safe (atomic counter); starts at 1.
|
| bool | fray::message::validMulticastRecipients (const Header &header) |
| | Validates the explicit destinations of a multicast header.
|
| F_err | fray::message::parseFrame (std::shared_ptr< const std::vector< F_uchar > > frame, InData &out) |
| | Parses the header of a complete frame. The payload is not read or copied.
|