INET Framework for OMNeT++/OMNEST
inet::LDPPacket Class Reference

Class generated from inet/networklayer/ldp/LDPPacket.msg:64 by nedtool. More...

#include <LDPPacket_m.h>

Inheritance diagram for inet::LDPPacket:
inet::LDPAddress inet::LDPHello inet::LDPIni inet::LDPLabelMapping inet::LDPLabelRequest inet::LDPNotify

Public Member Functions

 LDPPacket (const char *name=nullptr, short kind=0)
 
 LDPPacket (const LDPPacket &other)
 
virtual ~LDPPacket ()
 
LDPPacketoperator= (const LDPPacket &other)
 
virtual LDPPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getType () const
 
virtual void setType (int type)
 
virtual IPv4AddressgetSenderAddress ()
 
virtual const IPv4AddressgetSenderAddress () const
 
virtual void setSenderAddress (const IPv4Address &senderAddress)
 
virtual IPv4AddressgetReceiverAddress ()
 
virtual const IPv4AddressgetReceiverAddress () const
 
virtual void setReceiverAddress (const IPv4Address &receiverAddress)
 

Protected Member Functions

bool operator== (const LDPPacket &)
 

Protected Attributes

int type
 
IPv4Address senderAddress
 
IPv4Address receiverAddress
 

Private Member Functions

void copy (const LDPPacket &other)
 

Detailed Description

Class generated from inet/networklayer/ldp/LDPPacket.msg:64 by nedtool.

//
// Base class for LDP packets
//
packet LDPPacket
{
    int type;
    IPv4Address senderAddress;
    IPv4Address receiverAddress;
}

Constructor & Destructor Documentation

inet::LDPPacket::LDPPacket ( const char *  name = nullptr,
short  kind = 0 
)
inet::LDPPacket::LDPPacket ( const LDPPacket other)
virtual inet::LDPPacket::~LDPPacket ( )
virtual

Member Function Documentation

void inet::LDPPacket::copy ( const LDPPacket other)
private
virtual LDPPacket* inet::LDPPacket::dup ( ) const
inlineoverridevirtual

Reimplemented in inet::LDPAddress, inet::LDPIni, inet::LDPNotify, inet::LDPHello, inet::LDPLabelRequest, and inet::LDPLabelMapping.

145 {return new LDPPacket(*this);}
LDPPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address& inet::LDPPacket::getReceiverAddress ( )
virtual
virtual const IPv4Address& inet::LDPPacket::getReceiverAddress ( ) const
inlinevirtual

Referenced by getReceiverAddress().

156 {return const_cast<LDPPacket*>(this)->getReceiverAddress();}
virtual IPv4Address & getReceiverAddress()
LDPPacket(const char *name=nullptr, short kind=0)
virtual const IPv4Address& inet::LDPPacket::getSenderAddress ( ) const
inlinevirtual

Referenced by getSenderAddress().

153 {return const_cast<LDPPacket*>(this)->getSenderAddress();}
virtual IPv4Address & getSenderAddress()
LDPPacket(const char *name=nullptr, short kind=0)
virtual int inet::LDPPacket::getType ( ) const
virtual
LDPPacket& inet::LDPPacket::operator= ( const LDPPacket other)
bool inet::LDPPacket::operator== ( const LDPPacket )
protected
virtual void inet::LDPPacket::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::LDPPacket::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::LDPPacket::setReceiverAddress ( const IPv4Address receiverAddress)
virtual
virtual void inet::LDPPacket::setSenderAddress ( const IPv4Address senderAddress)
virtual

Member Data Documentation

IPv4Address inet::LDPPacket::receiverAddress
protected
IPv4Address inet::LDPPacket::senderAddress
protected
int inet::LDPPacket::type
protected

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