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