TPProto::Features Class Reference

The Features frame is sent from the server to describe some of the options it supports. More...

#include <featuresframe.h>

Inheritance diagram for TPProto::Features:

TPProto::Frame List of all members.

Public Member Functions

 Features ()
 Default constructor.
virtual ~Features ()
 Required virtual destructor.
void packBuffer (Buffer *buf)
 Pack into a Buffer, asserts.
bool unpackBuffer (Buffer *buf)
 Unpack from a Buffer. Unpacks the Features frame from the buffer.
bool hasSecureThisPort () const
 Does this port support secure connection.
bool hasSecureOtherPort () const
 Does another port support secure connection.
bool hasHttpTunnelingThisPort () const
 Does this port support secure connection.
bool hasHttpTunnelingOtherPort () const
 Does this port support secure connection.
bool supportsPing () const
 Does this port support secure connection.
bool supportsServerSidePropertyCalc () const
 Does this port support secure connection.
bool isSet (uint32_t val) const
 Does this port support secure connection.

Protected Attributes

std::set< uint32_t > features
 The set of features supported by the server.

Detailed Description

The Features frame is sent from the server to describe some of the options it supports.


Member Function Documentation

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

Pack into a Buffer, asserts.

Packs this Features frame into the buffer. Since the frame only comes from the server, this method assert(0).

Parameters:
buf Buffer to pack into, ignored.

Implements TPProto::Frame.

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

Unpack from a Buffer. Unpacks the Features frame from the buffer.

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

Implements TPProto::Frame.

bool TPProto::Features::hasSecureThisPort (  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.

bool TPProto::Features::hasSecureOtherPort (  )  const

Does another port support secure connection.

Returns:
True if the server supports secure connection on a different port.

bool TPProto::Features::hasHttpTunnelingThisPort (  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.

bool TPProto::Features::hasHttpTunnelingOtherPort (  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.

bool TPProto::Features::supportsPing (  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.

bool TPProto::Features::supportsServerSidePropertyCalc (  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.

bool TPProto::Features::isSet ( uint32_t  val  )  const

Does this port support secure connection.

Returns:
True if the server supports secure connection on this port.


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