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

#include <TurnMsgLib.h>

Inheritance diagram for StunAttrResponsePort:
StunAttr

List of all members.

Public Member Functions

 StunAttrResponsePort ()
 StunAttrResponsePort (const StunAttrIterator &iter) throw (WrongStunAttrFormatException, EndOfStunMsgException)
virtual ~StunAttrResponsePort ()
u16bits getResponsePort () const
void setResponsePort (u16bits p)

Protected Member Functions

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

Detailed Description

Change Request attribute class

Definition at line 390 of file TurnMsgLib.h.


Constructor & Destructor Documentation

Definition at line 392 of file TurnMsgLib.h.

: _rp(0) {}

Definition at line 393 of file TurnMsgLib.h.

                                                                           :
                StunAttr(iter) {

                if(iter.eof())
                        throw EndOfStunMsgException();

                int rp = stun_attr_get_response_port_str(getSar(iter));
                if(rp<0) {
                        throw WrongStunAttrFormatException();
                }
                _rp = (u16bits)rp;
        }
virtual StunAttrResponsePort::~StunAttrResponsePort ( ) [inline, virtual]

Definition at line 406 of file TurnMsgLib.h.

{}

Member Function Documentation

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

Reimplemented from StunAttr.

Definition at line 414 of file TurnMsgLib.h.

                                                                                                                                 {
                return stun_attr_add_response_port_str(buffer, &sz, _rp);
        }
u16bits StunAttrResponsePort::getResponsePort ( ) const [inline]

Definition at line 407 of file TurnMsgLib.h.

                                        {
                return _rp;
        }
void StunAttrResponsePort::setResponsePort ( u16bits  p) [inline]

Definition at line 410 of file TurnMsgLib.h.

                                        {
                _rp = p;
        }

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