TURN Server  1.5
 All Classes Files Functions Variables Typedefs Friends Defines
Public Member Functions | Protected Member Functions
StunAttrEvenPort Class Reference

#include <TurnMsgLib.h>

Inheritance diagram for StunAttrEvenPort:
StunAttr

List of all members.

Public Member Functions

 StunAttrEvenPort ()
 StunAttrEvenPort (const StunAttrIterator &iter) throw (WrongStunAttrFormatException, EndOfStunMsgException)
virtual ~StunAttrEvenPort ()
u08bits getEvenPort () const
void setEvenPort (u08bits ep)

Protected Member Functions

virtual int addToBuffer (u08bits *buffer, size_t &sz) throw (WrongStunAttrFormatException, WrongStunBufferFormatException)

Detailed Description

Even port attribute class

Definition at line 251 of file TurnMsgLib.h.


Constructor & Destructor Documentation

Definition at line 253 of file TurnMsgLib.h.

: _ep(0) {}

Definition at line 254 of file TurnMsgLib.h.

                                                                           :
                StunAttr(iter) {

                if(iter.eof())
                        throw EndOfStunMsgException();
                _ep = stun_attr_get_even_port(getSar(iter));
        }
virtual StunAttrEvenPort::~StunAttrEvenPort ( ) [inline, virtual]

Definition at line 262 of file TurnMsgLib.h.

{}

Member Function Documentation

virtual int StunAttrEvenPort::addToBuffer ( u08bits *  buffer,
size_t &  sz 
) throw (WrongStunAttrFormatException, WrongStunBufferFormatException) [inline, protected, virtual]

Reimplemented from StunAttr.

Definition at line 270 of file TurnMsgLib.h.

                                                                                                                                 {
                return stun_attr_add_str(buffer, &sz, STUN_ATTRIBUTE_EVEN_PORT, &_ep, 1);
        }
u08bits StunAttrEvenPort::getEvenPort ( ) const [inline]

Definition at line 263 of file TurnMsgLib.h.

                                    {
                return _ep;
        }
void StunAttrEvenPort::setEvenPort ( u08bits  ep) [inline]

Definition at line 266 of file TurnMsgLib.h.

                                     {
                _ep = ep;
        }

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