TPProto::Ping Class Reference

The Ping frame is sent to the server to keep the connection alive. More...

#include <ping.h>

Inheritance diagram for TPProto::Ping:

TPProto::Frame List of all members.

Public Member Functions

 Ping ()
 Default constructor.
virtual ~Ping ()
 Required virtual destructor.
void packBuffer (Buffer *buf)
 Pack into a Buffer.
bool unpackBuffer (Buffer *buf)
 Unpack from a Buffer, fails always. Since ping frames are only sent to the server, unpacking one doesn't make sence, and therefore always returns false.

Detailed Description

The Ping frame is sent to the server to keep the connection alive.


Member Function Documentation

void TPProto::Ping::packBuffer ( Buffer buf  )  [virtual]

Pack into a Buffer.

Packs this Ping frame into the buffer.

Parameters:
buf Buffer to pack into.

Implements TPProto::Frame.

bool TPProto::Ping::unpackBuffer ( Buffer buf  )  [virtual]

Unpack from a Buffer, fails always. Since ping frames are only sent to the server, unpacking one doesn't make sence, and therefore always returns false.

Parameters:
buf The Buffer to unpack out of, ignored.
Returns:
False always.

Implements TPProto::Frame.


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 05:00:48 2009 for libtpproto-cpp by  doxygen 1.5.1