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

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

#include <UdpControlInfo_m.h>

Inheritance diagram for inet::UdpSetBroadcastCommand:
inet::UdpSetOptionCommand inet::UdpControlInfo

Public Member Functions

 UdpSetBroadcastCommand ()
 
 UdpSetBroadcastCommand (const UdpSetBroadcastCommand &other)
 
virtual ~UdpSetBroadcastCommand ()
 
UdpSetBroadcastCommandoperator= (const UdpSetBroadcastCommand &other)
 
virtual UdpSetBroadcastCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual bool getBroadcast () const
 
virtual void setBroadcast (bool broadcast)
 
- 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 UdpSetBroadcastCommand &)=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

bool broadcast = false
 
- Protected Attributes inherited from inet::UdpSetOptionCommand
UdpSetOptionSubcode optionCode = static_cast<UdpSetOptionSubcode>(-1)
 

Private Member Functions

void copy (const UdpSetBroadcastCommand &other)
 

Detailed Description

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

//
// Control info for setting the Broadcast option on an UDP socket.
// 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 UdpSetBroadcastCommand extends UdpSetOptionCommand
{
    optionCode = UDP_C_SETOPTION_BROADCAST;
    bool broadcast;
}

Constructor & Destructor Documentation

◆ UdpSetBroadcastCommand() [1/2]

inet::UdpSetBroadcastCommand::UdpSetBroadcastCommand ( )

◆ UdpSetBroadcastCommand() [2/2]

inet::UdpSetBroadcastCommand::UdpSetBroadcastCommand ( const UdpSetBroadcastCommand other)

◆ ~UdpSetBroadcastCommand()

virtual inet::UdpSetBroadcastCommand::~UdpSetBroadcastCommand ( )
virtual

Member Function Documentation

◆ copy()

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

◆ dup()

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

Reimplemented from inet::UdpSetOptionCommand.

683 {return new UdpSetBroadcastCommand(*this);}

◆ getBroadcast()

virtual bool inet::UdpSetBroadcastCommand::getBroadcast ( ) const
virtual

◆ operator=()

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

◆ operator==()

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

◆ parsimPack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpSetOptionCommand.

Referenced by inet::doParsimUnpacking().

◆ setBroadcast()

virtual void inet::UdpSetBroadcastCommand::setBroadcast ( bool  broadcast)
virtual

Member Data Documentation

◆ broadcast

bool inet::UdpSetBroadcastCommand::broadcast = false
protected

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