Fray Engine
Loading...
Searching...
No Matches
fray::message::FrameOptions Struct Reference

Everything FrameBuilder needs to build one outgoing Engine message. More...

#include <message.hpp>

Public Attributes

ProcessKind destination = PROCESS_KIND_UNSPECIFIED
F_ulong operation = 0
F_ulong destinationId = 0
std::string payload
PayloadType payloadType = PAYLOAD_TYPE_NONE
MessageType messageType = MESSAGE_TYPE_NONE
std::optional< std::string > targetProject
uint32_t ttlMs = 0
MessageCategory category = MESSAGE_CATEGORY_COMMAND
std::uint32_t flags = 0
std::vector< std::pair< ProcessKind, F_ulong > > recipients

Detailed Description

Everything FrameBuilder needs to build one outgoing Engine message.

Definition at line 397 of file message.hpp.

Member Data Documentation

◆ category

MessageCategory fray::message::FrameOptions::category = MESSAGE_CATEGORY_COMMAND

Namespace of the operation identifier.

Definition at line 416 of file message.hpp.

◆ destination

ProcessKind fray::message::FrameOptions::destination = PROCESS_KIND_UNSPECIFIED

Kind of process the message is addressed to.

Definition at line 400 of file message.hpp.

◆ destinationId

F_ulong fray::message::FrameOptions::destinationId = 0

Destination instance id written to the prefix; zero is a valid instance.

Definition at line 404 of file message.hpp.

◆ flags

std::uint32_t fray::message::FrameOptions::flags = 0

Header flags (MessageFlag bits). 0 logs the message and shows it in the Console, like any other process's message; set MESSAGE_FLAG_NO_LOG or MESSAGE_FLAG_NO_CONSOLE to opt out of one, or both to send it silently.

Definition at line 421 of file message.hpp.

◆ messageType

MessageType fray::message::FrameOptions::messageType = MESSAGE_TYPE_NONE

Header message type.

Definition at line 410 of file message.hpp.

◆ operation

F_ulong fray::message::FrameOptions::operation = 0

Identifier written to the prefix in the selected category; 0 = none.

Definition at line 402 of file message.hpp.

◆ payload

std::string fray::message::FrameOptions::payload

Opaque payload bytes. If non-empty, payloadType must not be PAYLOAD_TYPE_NONE.

Definition at line 406 of file message.hpp.

◆ payloadType

PayloadType fray::message::FrameOptions::payloadType = PAYLOAD_TYPE_NONE

How the payload is encoded.

Definition at line 408 of file message.hpp.

◆ recipients

std::vector<std::pair<ProcessKind, F_ulong> > fray::message::FrameOptions::recipients

Explicit process instances addressed by a multicast frame.

Definition at line 423 of file message.hpp.

◆ targetProject

std::optional<std::string> fray::message::FrameOptions::targetProject

Optional project the message targets; set in the header only when present.

Definition at line 412 of file message.hpp.

◆ ttlMs

uint32_t fray::message::FrameOptions::ttlMs = 0

Time-to-live written to the header in milliseconds; 0 = unset.

Definition at line 414 of file message.hpp.


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