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

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

#include <UDPControlInfo_m.h>

Inheritance diagram for inet::UDPConnectCommand:
inet::UDPControlInfo

Public Member Functions

 UDPConnectCommand ()
 
 UDPConnectCommand (const UDPConnectCommand &other)
 
virtual ~UDPConnectCommand ()
 
UDPConnectCommandoperator= (const UDPConnectCommand &other)
 
virtual UDPConnectCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual L3AddressgetRemoteAddr ()
 
virtual const L3AddressgetRemoteAddr () const
 
virtual void setRemoteAddr (const L3Address &remoteAddr)
 
virtual int getRemotePort () const
 
virtual void setRemotePort (int remotePort)
 
- 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 UDPConnectCommand &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

L3Address remoteAddr
 
int remotePort
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPConnectCommand &other)
 

Detailed Description

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

//
// Control info for connecting an UDP socket. To connect a socket,
// send a message to the ~UDP module with kind=UDP_C_CONNECT and an
// ~UDPConnectCommand attached. If the socket does not exist,
// it will be created.
//
// Both the address and the port must be filled in.
//
// @see ~UDPCommandCode
//
class UDPConnectCommand extends UDPControlInfo
{
    L3Address remoteAddr;
    int remotePort = -1;
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::UDPControlInfo.

225 {return new UDPConnectCommand(*this);}
virtual L3Address& inet::UDPConnectCommand::getRemoteAddr ( )
virtual
virtual const L3Address& inet::UDPConnectCommand::getRemoteAddr ( ) const
inlinevirtual

Referenced by getRemoteAddr().

231 {return const_cast<UDPConnectCommand*>(this)->getRemoteAddr();}
virtual L3Address & getRemoteAddr()
virtual int inet::UDPConnectCommand::getRemotePort ( ) const
virtual
UDPConnectCommand& inet::UDPConnectCommand::operator= ( const UDPConnectCommand other)
bool inet::UDPConnectCommand::operator== ( const UDPConnectCommand )
protected
virtual void inet::UDPConnectCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimUnpacking().

virtual void inet::UDPConnectCommand::setRemoteAddr ( const L3Address remoteAddr)
virtual
virtual void inet::UDPConnectCommand::setRemotePort ( int  remotePort)
virtual

Member Data Documentation

L3Address inet::UDPConnectCommand::remoteAddr
protected
int inet::UDPConnectCommand::remotePort
protected

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