BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | List of all members
graphene::net::message_header Struct Reference

#include <message.hpp>

Inheritance diagram for graphene::net::message_header:
graphene::net::message

Public Member Functions

 message_header ()
 

Public Attributes

boost::endian::little_uint32_buf_t size
 
boost::endian::little_uint32_buf_t msg_type
 

Detailed Description

Defines an 8 byte header that is always present because the minimum encrypted packet size is 8 bytes (blowfish). The maximum message size is defined in config.hpp. The channel, and message type is also included because almost every channel will have a message type field and we might as well include it in the 8 byte header to save space.

Definition at line 41 of file message.hpp.

Constructor & Destructor Documentation

◆ message_header()

graphene::net::message_header::message_header ( )
inline

Definition at line 45 of file message.hpp.

Member Data Documentation

◆ msg_type

boost::endian::little_uint32_buf_t graphene::net::message_header::msg_type

Definition at line 44 of file message.hpp.

◆ size

boost::endian::little_uint32_buf_t graphene::net::message_header::size

Definition at line 43 of file message.hpp.


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