#include <TurnMsgLib.h>
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) |
Change Request attribute class
Definition at line 390 of file TurnMsgLib.h.
| StunAttrResponsePort::StunAttrResponsePort | ( | ) | [inline] |
Definition at line 392 of file TurnMsgLib.h.
: _rp(0) {}
| StunAttrResponsePort::StunAttrResponsePort | ( | const StunAttrIterator & | iter | ) | throw (WrongStunAttrFormatException, EndOfStunMsgException) [inline] |
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.
{}
| 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;
}
1.8.0