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

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

#include <UdpControlInfo_m.h>

Inheritance diagram for inet::UdpBindCommand:
inet::UdpControlInfo

Public Member Functions

 UdpBindCommand ()
 
 UdpBindCommand (const UdpBindCommand &other)
 
virtual ~UdpBindCommand ()
 
UdpBindCommandoperator= (const UdpBindCommand &other)
 
virtual UdpBindCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual const L3AddressgetLocalAddr () const
 
virtual L3AddressgetLocalAddrForUpdate ()
 
virtual void setLocalAddr (const L3Address &localAddr)
 
virtual int getLocalPort () const
 
virtual void setLocalPort (int localPort)
 
- Public Member Functions inherited from inet::UdpControlInfo
 UdpControlInfo ()
 
 UdpControlInfo (const UdpControlInfo &other)
 
virtual ~UdpControlInfo ()
 
UdpControlInfooperator= (const UdpControlInfo &other)
 

Protected Member Functions

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

Protected Attributes

L3Address localAddr
 
int localPort = -1
 

Private Member Functions

void copy (const UdpBindCommand &other)
 

Detailed Description

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

//
// Control info for binding an UDP socket. To create and bind a socket,
// send a message to the ~Udp module with kind=UDP_C_BIND and an
// ~UdpBindCommand attached.
//
// Both the address and the port may be left unset. If the port is
// unset, ~Udp will assign an ephemeral port.
//
// @see ~UdpCommandCode
//
class UdpBindCommand extends UdpControlInfo
{
    L3Address localAddr;
    int localPort = -1;
}

Constructor & Destructor Documentation

◆ UdpBindCommand() [1/2]

inet::UdpBindCommand::UdpBindCommand ( )

◆ UdpBindCommand() [2/2]

inet::UdpBindCommand::UdpBindCommand ( const UdpBindCommand other)

◆ ~UdpBindCommand()

virtual inet::UdpBindCommand::~UdpBindCommand ( )
virtual

Member Function Documentation

◆ copy()

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

◆ dup()

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

Reimplemented from inet::UdpControlInfo.

239 {return new UdpBindCommand(*this);}

◆ getLocalAddr()

virtual const L3Address& inet::UdpBindCommand::getLocalAddr ( ) const
virtual

◆ getLocalAddrForUpdate()

virtual L3Address& inet::UdpBindCommand::getLocalAddrForUpdate ( )
inlinevirtual
244 { return const_cast<L3Address&>(const_cast<UdpBindCommand*>(this)->getLocalAddr());}

◆ getLocalPort()

virtual int inet::UdpBindCommand::getLocalPort ( ) const
virtual

◆ operator=()

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

◆ operator==()

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

◆ parsimPack()

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

Reimplemented from inet::UdpControlInfo.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpControlInfo.

Referenced by inet::doParsimUnpacking().

◆ setLocalAddr()

virtual void inet::UdpBindCommand::setLocalAddr ( const L3Address localAddr)
virtual

◆ setLocalPort()

virtual void inet::UdpBindCommand::setLocalPort ( int  localPort)
virtual

Member Data Documentation

◆ localAddr

L3Address inet::UdpBindCommand::localAddr
protected

◆ localPort

int inet::UdpBindCommand::localPort = -1
protected

The documentation for this class was generated from the following file:
inet::UdpBindCommand::UdpBindCommand
UdpBindCommand()
inet::UdpBindCommand::getLocalAddr
virtual const L3Address & getLocalAddr() const