GHS
Leader Election Based on GHS Minimum Spanning Tree
|
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. | |
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
|
inline |
The number of bytes to send over the wire. It is identical to sizeof(demo::Header) + sizeof(demo::Control) + header.payload_size