BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | Public Attributes | List of all members
graphene::net::message Struct Reference

#include <message.hpp>

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

Public Member Functions

 message ()
 
 message (message &&m)
 
 message (const message &m)
 
template<typename T >
 message (const T &m)
 
message_hash_type id () const
 
template<typename T >
as () const
 
- Public Member Functions inherited from graphene::net::message_header
 message_header ()
 

Public Attributes

std::vector< char > data
 
- Public Attributes inherited from graphene::net::message_header
boost::endian::little_uint32_buf_t size
 
boost::endian::little_uint32_buf_t msg_type
 

Detailed Description

Abstracts the process of packing/unpacking a message for a particular channel.

Definition at line 58 of file message.hpp.

Constructor & Destructor Documentation

◆ message() [1/4]

graphene::net::message::message ( )
inline

Definition at line 62 of file message.hpp.

◆ message() [2/4]

graphene::net::message::message ( message &&  m)
inline

Definition at line 64 of file message.hpp.

◆ message() [3/4]

graphene::net::message::message ( const message m)
inline

Definition at line 67 of file message.hpp.

◆ message() [4/4]

template<typename T >
graphene::net::message::message ( const T &  m)
inline

Assumes that T::type specifies the message type

Definition at line 74 of file message.hpp.

Member Function Documentation

◆ as()

template<typename T >
T graphene::net::message::as ( ) const
inline

Automatically checks the type and deserializes T in the opposite process from the constructor.

Definition at line 91 of file message.hpp.

◆ id()

message_hash_type graphene::net::message::id ( ) const
inline

Definition at line 81 of file message.hpp.

Member Data Documentation

◆ data

std::vector<char> graphene::net::message::data

Definition at line 60 of file message.hpp.


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