BitShares-Core  5.0.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)
 
fc::uint160_t 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 60 of file message.hpp.

Constructor & Destructor Documentation

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

Definition at line 64 of file message.hpp.

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

Definition at line 66 of file message.hpp.

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

Definition at line 69 of file message.hpp.

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

Assumes that T::type specifies the message type

Definition at line 76 of file message.hpp.

Member Function Documentation

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

fc::uint160_t graphene::net::message::id ( ) const
inline

Definition at line 83 of file message.hpp.

Member Data Documentation

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

Definition at line 62 of file message.hpp.


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