Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes

realm::protocolv1::Packet Class Reference

#include <RealmProtocol.h>

Inheritance diagram for realm::protocolv1::Packet:
realm::protocolv1::PayloadPacket realm::protocolv1::SessionTakeOverPacket realm::protocolv1::UserLeftPacket realm::protocolv1::DeliverPacket realm::protocolv1::RoutingPacket realm::protocolv1::UserJoinedPacket

List of all members.

Public Member Functions

virtual ~Packet ()
virtual int complete (const char *buf, size_t size)
virtual int parse (const char *, size_t)
const uint8_t & type () const

Static Public Member Functions

static PacketPtr construct (uint8_t type)
static bool s_valid (unsigned char type)
static uint32_t s_body_size (unsigned char type)

Protected Member Functions

 Packet (uint8_t type)

Private Attributes

uint8_t m_type

Constructor & Destructor Documentation

virtual realm::protocolv1::Packet::~Packet (  )  [inline, virtual]
Packet::Packet ( uint8_t  type  )  [protected]

Member Function Documentation

int Packet::complete ( const char *  buf,
size_t  size 
) [virtual]
PacketPtr Packet::construct ( uint8_t  type  )  [static]
virtual int realm::protocolv1::Packet::parse ( const char *  ,
) [inline, virtual]
uint32_t Packet::s_body_size ( unsigned char  type  )  [static]
bool Packet::s_valid ( unsigned char  type  )  [static]
const uint8_t& realm::protocolv1::Packet::type (  )  const [inline]

References m_type.

Referenced by realm::protocolv1::send().

Member Data Documentation

Referenced by complete(), and type().

The documentation for this class was generated from the following files: