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

Class generated from inet/transportlayer/contract/udp/UDPControlInfo.msg:83 by nedtool. 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 L3AddressgetLocalAddr ()
 
virtual const L3AddressgetLocalAddr () const
 
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)
 
virtual int getSockId () const
 
virtual void setSockId (int sockId)
 

Protected Member Functions

bool operator== (const UDPBindCommand &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

L3Address localAddr
 
int localPort
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPBindCommand &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/udp/UDPControlInfo.msg:83 by nedtool.

//
// 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

inet::UDPBindCommand::UDPBindCommand ( )
inet::UDPBindCommand::UDPBindCommand ( const UDPBindCommand other)
virtual inet::UDPBindCommand::~UDPBindCommand ( )
virtual

Member Function Documentation

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

Reimplemented from inet::UDPControlInfo.

172 {return new UDPBindCommand(*this);}
virtual L3Address& inet::UDPBindCommand::getLocalAddr ( )
virtual
virtual const L3Address& inet::UDPBindCommand::getLocalAddr ( ) const
inlinevirtual

Referenced by getLocalAddr().

178 {return const_cast<UDPBindCommand*>(this)->getLocalAddr();}
virtual L3Address & getLocalAddr()
virtual int inet::UDPBindCommand::getLocalPort ( ) const
virtual
UDPBindCommand& inet::UDPBindCommand::operator= ( const UDPBindCommand other)
bool inet::UDPBindCommand::operator== ( const UDPBindCommand )
protected
virtual void inet::UDPBindCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimUnpacking().

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

Referenced by inet::UDPSocket::bind().

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

Referenced by inet::UDPSocket::bind().

Member Data Documentation

L3Address inet::UDPBindCommand::localAddr
protected
int inet::UDPBindCommand::localPort
protected

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