GHS
Leader Election Based on GHS Minimum Spanning Tree
Public Member Functions | Public Attributes | List of all members
demo::WireMessage Struct Reference

A wire-ready message structure that can encapsulate a variety of payloads for sending across the wire to an endpoint. More...

#include <ghs-demo-comms.h>

Public Member Functions

size_t size () const
 

Public Attributes

Control control
 Msg control information.
 
Header header
 Msg meta information.
 
uint8_t bytes [PAYLOAD_MAX_SZ]
 The actual payload to send. Note only the first N=demo::WireMessageHeader::payload_size will be sent from the bytes.
 

Detailed Description

A wire-ready message structure that can encapsulate a variety of payloads for sending across the wire to an endpoint.

Used to pass le::ghs::Msg payloads across the internet between agents, among other things

See also
le::ghs::Msg

Member Function Documentation

◆ size()

size_t demo::WireMessage::size ( ) const
inline

The number of bytes to send over the wire. It is identical to sizeof(demo::Header) + sizeof(demo::Control) + header.payload_size


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