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

Class generated from inet/applications/pingapp/PingPayload.msg:30 by nedtool. More...

#include <PingPayload_m.h>

Inheritance diagram for inet::PingPayload:

Public Member Functions

 PingPayload (const char *name=nullptr, short kind=0)
 
 PingPayload (const PingPayload &other)
 
virtual ~PingPayload ()
 
PingPayloadoperator= (const PingPayload &other)
 
virtual PingPayloaddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual long getOriginatorId () const
 
virtual void setOriginatorId (long originatorId)
 
virtual long getSeqNo () const
 
virtual void setSeqNo (long seqNo)
 
virtual void setDataArraySize (unsigned int size)
 
virtual unsigned int getDataArraySize () const
 
virtual unsigned char getData (unsigned int k) const
 
virtual void setData (unsigned int k, unsigned char data)
 

Protected Member Functions

bool operator== (const PingPayload &)
 

Protected Attributes

long originatorId
 
long seqNo
 
unsigned char * data
 
unsigned int data_arraysize
 

Private Member Functions

void copy (const PingPayload &other)
 

Detailed Description

Class generated from inet/applications/pingapp/PingPayload.msg:30 by nedtool.

//
// Represents payload in an ICMP/ICMPv6 Echo Request/Reply.
//
// TODO: move originator id and sequence number to ICMPMessage and use an ICMPControlInfo
packet PingPayload
{
    long originatorId; // sender module id
    long seqNo; // sequence number
    unsigned char data[];
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::PingPayload::copy ( const PingPayload other)
private
virtual PingPayload* inet::PingPayload::dup ( ) const
inlineoverridevirtual
72 {return new PingPayload(*this);}
PingPayload(const char *name=nullptr, short kind=0)
virtual unsigned char inet::PingPayload::getData ( unsigned int  k) const
virtual
virtual unsigned int inet::PingPayload::getDataArraySize ( ) const
virtual
PingPayload& inet::PingPayload::operator= ( const PingPayload other)
bool inet::PingPayload::operator== ( const PingPayload )
protected
virtual void inet::PingPayload::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

virtual void inet::PingPayload::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Referenced by inet::doParsimUnpacking().

virtual void inet::PingPayload::setData ( unsigned int  k,
unsigned char  data 
)
virtual
virtual void inet::PingPayload::setDataArraySize ( unsigned int  size)
virtual
virtual void inet::PingPayload::setOriginatorId ( long  originatorId)
virtual
virtual void inet::PingPayload::setSeqNo ( long  seqNo)
virtual

Member Data Documentation

unsigned char* inet::PingPayload::data
protected
unsigned int inet::PingPayload::data_arraysize
protected
long inet::PingPayload::originatorId
protected
long inet::PingPayload::seqNo
protected

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