TPProto::Redirect Class Reference

The Redirect frame is sent from the server to change servers. More...

#include <redirect.h>

Inheritance diagram for TPProto::Redirect:

TPProto::Frame List of all members.

Public Member Functions

 Redirect ()
 Default constructor.
virtual ~Redirect ()
 Required virtual destructor.
void packBuffer (Buffer *buf)
 Pack into a Buffer, Assert(0).
bool unpackBuffer (Buffer *buf)
 Unpack from a Buffer.
std::string getUrl ()
 Gets the redirection url string sent in the Redirect frame.

Protected Attributes

std::string url
 The url that we have been told to redirect to.

Detailed Description

The Redirect frame is sent from the server to change servers.


Member Function Documentation

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

Pack into a Buffer, Assert(0).

This Frame does not get sent to the server, so this method asserts zero.

Parameters:
buf Buffer to pack into, ignored.

Implements TPProto::Frame.

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

Unpack from a Buffer.

Parameters:
buf The Buffer to unpack out of.
Returns:
True if successful, false otherwise.

Implements TPProto::Frame.

std::string TPProto::Redirect::getUrl (  ) 

Gets the redirection url string sent in the Redirect frame.

Returns:
The url string.


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