|
Fray Engine
|
Fixed-size routing prefix at the start of every frame; routers read only this. All integers are big-endian on the wire. Layout: 0 version | 1 destinationKind | 2-5 destinationId | 6 senderKind | 7-10 senderId 11-14 operationId | 15-18 length | 19-22 headerLength | 23-38 uid | 39 category. More...
#include <message.hpp>
Public Attributes | |
| F_uchar | version = PREFIX_VERSION |
| ProcessKind | destinationKind = PROCESS_KIND_UNSPECIFIED |
| F_ulong | destinationId = 0 |
| ProcessKind | senderKind = PROCESS_KIND_UNSPECIFIED |
| F_ulong | senderId = 0 |
| F_ulong | operationId = 0 |
| F_ulong | length = 0 |
| F_ulong | headerLength = 0 |
| identity::Uid | uid {} |
| MessageCategory | category = MESSAGE_CATEGORY_COMMAND |
Fixed-size routing prefix at the start of every frame; routers read only this. All integers are big-endian on the wire. Layout: 0 version | 1 destinationKind | 2-5 destinationId | 6 senderKind | 7-10 senderId 11-14 operationId | 15-18 length | 19-22 headerLength | 23-38 uid | 39 category.
Definition at line 52 of file message.hpp.
| MessageCategory fray::message::Prefix::category = MESSAGE_CATEGORY_COMMAND |
Whether operationId is a command or a protocol notification.
Definition at line 72 of file message.hpp.
| F_ulong fray::message::Prefix::destinationId = 0 |
Destination instance ID; zero is a valid instance.
Definition at line 59 of file message.hpp.
| ProcessKind fray::message::Prefix::destinationKind = PROCESS_KIND_UNSPECIFIED |
Kind of process the message is addressed to.
Definition at line 57 of file message.hpp.
| F_ulong fray::message::Prefix::headerLength = 0 |
Bytes of the protobuf Header that follow the prefix; the rest of length is payload.
Definition at line 68 of file message.hpp.
| F_ulong fray::message::Prefix::length = 0 |
Definition at line 66 of file message.hpp.
| F_ulong fray::message::Prefix::operationId = 0 |
Identifier within the namespace selected by category; 0 = none.
Definition at line 65 of file message.hpp.
| F_ulong fray::message::Prefix::senderId = 0 |
Id of the sending process instance.
Definition at line 63 of file message.hpp.
| ProcessKind fray::message::Prefix::senderKind = PROCESS_KIND_UNSPECIFIED |
Kind of process that sent the message.
Definition at line 61 of file message.hpp.
| identity::Uid fray::message::Prefix::uid {} |
Globally unique routing identity; all zero until assigned by the Engine.
Definition at line 70 of file message.hpp.
| F_uchar fray::message::Prefix::version = PREFIX_VERSION |
Wire format version; must equal PREFIX_VERSION to be accepted.
Definition at line 55 of file message.hpp.