SOLA
|
#include <message_header.h>
Public Member Functions | |
MinhtonMessageHeader (NodeInfo sender, NodeInfo target, uint64_t ref_event_id=0) | |
uint64_t | getEventId () const |
uint64_t | getRefEventId () const |
NodeInfo | getSender () const |
NodeInfo | getTarget () const |
MessageType | getMessageType () const |
void | setSender (const NodeInfo &sender) |
void | setTarget (const NodeInfo &target) |
void | setEventId (uint64_t event_id) |
void | setRefEventId (uint64_t ref_event_id) |
void | setMessageType (MessageType type) |
MessageLoggingInfo | getMessageLoggingInfo (bool receive) const |
void | setAdditionalLoggingInfo (const MessageLoggingAdditionalInfo &additional_info) |
MessageLoggingAdditionalInfo | getAdditionalLoggingInfo () const |
bool | validate () const |
SERIALIZE (sender_, target_, message_type_, ref_event_id_, event_id_, additional_logging_info_) | |
The header contains various information about the sender, receiver, message type, protocol version, a timestamp, and so on. Works with MinhtonMessages.
MessageLoggingInfo minhton::MinhtonMessageHeader::getMessageLoggingInfo | ( | bool | receive | ) | const |
Helper method to get the message logging info for this message
receive | whether the receive flag should be set to RECEIVEING or SENDING |
bool minhton::MinhtonMessageHeader::validate | ( | ) | const |
Validation method used for the final check before sending. For other purposes, a different check is performed when creating a specific message.