SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
minhton::MinhtonMessageHeader Class Reference

#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_)
 

Detailed Description

The header contains various information about the sender, receiver, message type, protocol version, a timestamp, and so on. Works with MinhtonMessages.

Member Function Documentation

◆ getMessageLoggingInfo()

MessageLoggingInfo minhton::MinhtonMessageHeader::getMessageLoggingInfo ( bool  receive) const

Helper method to get the message logging info for this message

Parameters
receivewhether the receive flag should be set to RECEIVEING or SENDING
Returns
the filled message logging info

◆ validate()

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.


The documentation for this class was generated from the following files: