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

Class generated from inet/transportlayer/contract/udp/UdpControlInfo.msg:179 by opp_msgtool. More...

#include <UdpControlInfo_m.h>

Inheritance diagram for inet::UdpSetTimeToLiveCommand:
inet::UdpSetOptionCommand inet::UdpControlInfo

Public Member Functions

 UdpSetTimeToLiveCommand ()
 
 UdpSetTimeToLiveCommand (const UdpSetTimeToLiveCommand &other)
 
virtual ~UdpSetTimeToLiveCommand ()
 
UdpSetTimeToLiveCommandoperator= (const UdpSetTimeToLiveCommand &other)
 
virtual UdpSetTimeToLiveCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getTtl () const
 
virtual void setTtl (int ttl)
 
- Public Member Functions inherited from inet::UdpSetOptionCommand
 UdpSetOptionCommand ()
 
 UdpSetOptionCommand (const UdpSetOptionCommand &other)
 
virtual ~UdpSetOptionCommand ()
 
UdpSetOptionCommandoperator= (const UdpSetOptionCommand &other)
 
virtual UdpSetOptionSubcode getOptionCode () const
 
virtual void setOptionCode (UdpSetOptionSubcode optionCode)
 
- Public Member Functions inherited from inet::UdpControlInfo
 UdpControlInfo ()
 
 UdpControlInfo (const UdpControlInfo &other)
 
virtual ~UdpControlInfo ()
 
UdpControlInfooperator= (const UdpControlInfo &other)
 

Protected Member Functions

bool operator== (const UdpSetTimeToLiveCommand &)=delete
 
- Protected Member Functions inherited from inet::UdpSetOptionCommand
bool operator== (const UdpSetOptionCommand &)=delete
 
- Protected Member Functions inherited from inet::UdpControlInfo
bool operator== (const UdpControlInfo &)=delete
 

Protected Attributes

int ttl = 0
 
- Protected Attributes inherited from inet::UdpSetOptionCommand
UdpSetOptionSubcode optionCode = static_cast<UdpSetOptionSubcode>(-1)
 

Private Member Functions

void copy (const UdpSetTimeToLiveCommand &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/udp/UdpControlInfo.msg:179 by opp_msgtool.

//
// Control info for setting the Time To Live (a.k.a. Hop Limit) option on an
// UDP socket. This option will affect both multicast and unicast packets.
// To set the option, send a message to the ~Udp module with kind=UDP_C_SETOPTION
// and an and instance of this control info class attached.
//
// @see ~UdpCommandCode
//
class UdpSetTimeToLiveCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_TTL;
    int ttl;
}

Constructor & Destructor Documentation

◆ UdpSetTimeToLiveCommand() [1/2]

inet::UdpSetTimeToLiveCommand::UdpSetTimeToLiveCommand ( )

◆ UdpSetTimeToLiveCommand() [2/2]

inet::UdpSetTimeToLiveCommand::UdpSetTimeToLiveCommand ( const UdpSetTimeToLiveCommand other)

◆ ~UdpSetTimeToLiveCommand()

virtual inet::UdpSetTimeToLiveCommand::~UdpSetTimeToLiveCommand ( )
virtual

Member Function Documentation

◆ copy()

void inet::UdpSetTimeToLiveCommand::copy ( const UdpSetTimeToLiveCommand other)
private

◆ dup()

virtual UdpSetTimeToLiveCommand* inet::UdpSetTimeToLiveCommand::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::UdpSetOptionCommand.

547 {return new UdpSetTimeToLiveCommand(*this);}

◆ getTtl()

virtual int inet::UdpSetTimeToLiveCommand::getTtl ( ) const
virtual

◆ operator=()

UdpSetTimeToLiveCommand& inet::UdpSetTimeToLiveCommand::operator= ( const UdpSetTimeToLiveCommand other)

◆ operator==()

bool inet::UdpSetTimeToLiveCommand::operator== ( const UdpSetTimeToLiveCommand )
protecteddelete

◆ parsimPack()

virtual void inet::UdpSetTimeToLiveCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimUnpacking().

◆ setTtl()

virtual void inet::UdpSetTimeToLiveCommand::setTtl ( int  ttl)
virtual

Member Data Documentation

◆ ttl

int inet::UdpSetTimeToLiveCommand::ttl = 0
protected

The documentation for this class was generated from the following file:
inet::UdpSetTimeToLiveCommand::UdpSetTimeToLiveCommand
UdpSetTimeToLiveCommand()