#include <RealmProtocol.h>
Public Member Functions | |
RoutingPacket () | |
RoutingPacket (std::vector< uint8_t > &connection_ids, boost::shared_ptr< std::string > msg) | |
virtual int | parse (const char *buf, size_t size) |
const uint8_t & | getAddressCount () const |
const std::vector< uint8_t > & | getConnectionIds () const |
boost::shared_ptr< std::string > | getMessage () const |
Private Attributes | |
uint8_t | m_address_count |
std::vector< uint8_t > | m_connection_ids |
boost::shared_ptr< std::string > | m_msg |
realm::protocolv1::RoutingPacket::RoutingPacket | ( | ) |
realm::protocolv1::RoutingPacket::RoutingPacket | ( | std::vector< uint8_t > & | connection_ids, | |
boost::shared_ptr< std::string > | msg | |||
) |
const uint8_t& realm::protocolv1::RoutingPacket::getAddressCount | ( | ) | const [inline] |
References m_address_count.
Referenced by realm::protocolv1::send().
const std::vector<uint8_t>& realm::protocolv1::RoutingPacket::getConnectionIds | ( | ) | const [inline] |
References m_connection_ids.
Referenced by realm::protocolv1::send().
boost::shared_ptr<std::string> realm::protocolv1::RoutingPacket::getMessage | ( | ) | const [inline] |
References m_msg.
Referenced by realm::protocolv1::send().
int realm::protocolv1::RoutingPacket::parse | ( | const char * | buf, | |
size_t | size | |||
) | [virtual] |
Reimplemented from realm::protocolv1::PayloadPacket.
References realm::protocolv1::PayloadPacket::getPayloadSize(), m_address_count, m_connection_ids, and m_msg.
uint8_t realm::protocolv1::RoutingPacket::m_address_count [private] |
Referenced by getAddressCount(), and parse().
std::vector<uint8_t> realm::protocolv1::RoutingPacket::m_connection_ids [private] |
Referenced by getConnectionIds(), and parse().
boost::shared_ptr<std::string> realm::protocolv1::RoutingPacket::m_msg [private] |
Referenced by getMessage(), and parse().