BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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:

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 43 of file message.hpp.

Constructor & Destructor Documentation

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

Definition at line 47 of file message.hpp.

Member Data Documentation

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

Definition at line 46 of file message.hpp.

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

Definition at line 45 of file message.hpp.

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