INET Framework for OMNeT++/OMNEST
|
#include <RSVPPacket.h>
Public Member Functions | |
RSVPPacket (const char *name=NULL, int kind=0) | |
RSVPPacket (const RSVPPacket &other) | |
RSVPPacket & | operator= (const RSVPPacket &other) |
virtual RSVPPacket * | dup () const |
IPAddress | getDestAddress () |
int | getTunnelId () |
int | getExTunnelId () |
int | getSetupPri () |
int | getHoldingPri () |
bool | isInSession (SessionObj_t *s) |
RSVP message common part.
This class adds convenience get() and set() methods to the generated base class, but no extra data.
RSVPPacket::RSVPPacket | ( | const char * | name = NULL , |
int | kind = 0 |
||
) | [inline] |
Referenced by dup().
: RSVPPacket_Base(name,RSVP_TRAFFIC) { this->rsvpKind_var = kind; }
RSVPPacket::RSVPPacket | ( | const RSVPPacket & | other | ) | [inline] |
: RSVPPacket_Base(other.getName()) {operator=(other);}
virtual RSVPPacket* RSVPPacket::dup | ( | ) | const [inline, virtual] |
{return new RSVPPacket(*this);}
IPAddress RSVPPacket::getDestAddress | ( | ) | [inline] |
{return getSession().DestAddress;}
int RSVPPacket::getExTunnelId | ( | ) | [inline] |
{return getSession().Extended_Tunnel_Id;}
int RSVPPacket::getHoldingPri | ( | ) | [inline] |
{return getSession().holdingPri;}
int RSVPPacket::getSetupPri | ( | ) | [inline] |
{return getSession().setupPri;}
int RSVPPacket::getTunnelId | ( | ) | [inline] |
{return getSession().Tunnel_Id;}
bool RSVPPacket::isInSession | ( | SessionObj_t * | s | ) | [inline] |
{
return getSession().DestAddress==s->DestAddress &&
getSession().Tunnel_Id==s->Tunnel_Id &&
getSession().Extended_Tunnel_Id==s->Extended_Tunnel_Id;
}
RSVPPacket& RSVPPacket::operator= | ( | const RSVPPacket & | other | ) | [inline] |
Referenced by RSVPPacket().
{RSVPPacket_Base::operator=(other); return *this;}