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

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

#include <UDPControlInfo_m.h>

Inheritance diagram for inet::UDPSendCommand:
inet::UDPControlInfo

Public Member Functions

 UDPSendCommand ()
 
 UDPSendCommand (const UDPSendCommand &other)
 
virtual ~UDPSendCommand ()
 
UDPSendCommandoperator= (const UDPSendCommand &other)
 
virtual UDPSendCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual L3AddressgetDestAddr ()
 
virtual const L3AddressgetDestAddr () const
 
virtual void setDestAddr (const L3Address &destAddr)
 
virtual int getDestPort () const
 
virtual void setDestPort (int destPort)
 
virtual L3AddressgetSrcAddr ()
 
virtual const L3AddressgetSrcAddr () const
 
virtual void setSrcAddr (const L3Address &srcAddr)
 
virtual int getInterfaceId () const
 
virtual void setInterfaceId (int interfaceId)
 
- 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 UDPSendCommand &)
 
- Protected Member Functions inherited from inet::UDPControlInfo
bool operator== (const UDPControlInfo &)
 

Protected Attributes

L3Address destAddr
 
int destPort
 
L3Address srcAddr
 
int interfaceId
 
- Protected Attributes inherited from inet::UDPControlInfo
int sockId
 

Private Member Functions

void copy (const UDPSendCommand &other)
 

Detailed Description

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

//
// Control info for sending data via UDP. To send a packet, send it to
// the ~UDP module with kind=UDP_C_SEND and an ~UDPSendCommand attached.
//
// UDP_C_SEND/~UDPSendCommand models both the Unix send() and sendto() calls.
// If the socket is connected, destAddr/destPort may be left blank (send()),
// otherwise it must contain the destination for the packet (sendto()).
//
// @see ~UDPCommandCode
//
class UDPSendCommand extends UDPControlInfo
{
    L3Address destAddr; // destination IPv4 or IPv6 address
    int destPort = -1;     // destination port
    L3Address srcAddr;       // source address
    int interfaceId = -1; // interface on which the packet must be sent (see ~InterfaceTable)
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::UDPControlInfo.

282 {return new UDPSendCommand(*this);}
virtual L3Address& inet::UDPSendCommand::getDestAddr ( )
virtual
virtual const L3Address& inet::UDPSendCommand::getDestAddr ( ) const
inlinevirtual

Referenced by getDestAddr().

288 {return const_cast<UDPSendCommand*>(this)->getDestAddr();}
virtual L3Address & getDestAddr()
virtual int inet::UDPSendCommand::getDestPort ( ) const
virtual
virtual int inet::UDPSendCommand::getInterfaceId ( ) const
virtual
virtual L3Address& inet::UDPSendCommand::getSrcAddr ( )
virtual
virtual const L3Address& inet::UDPSendCommand::getSrcAddr ( ) const
inlinevirtual

Referenced by getSrcAddr().

293 {return const_cast<UDPSendCommand*>(this)->getSrcAddr();}
virtual L3Address & getSrcAddr()
UDPSendCommand& inet::UDPSendCommand::operator= ( const UDPSendCommand other)
bool inet::UDPSendCommand::operator== ( const UDPSendCommand )
protected
virtual void inet::UDPSendCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimPacking().

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

Reimplemented from inet::UDPControlInfo.

Referenced by inet::doParsimUnpacking().

virtual void inet::UDPSendCommand::setDestAddr ( const L3Address destAddr)
virtual

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

virtual void inet::UDPSendCommand::setDestPort ( int  destPort)
virtual

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

virtual void inet::UDPSendCommand::setInterfaceId ( int  interfaceId)
virtual

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

virtual void inet::UDPSendCommand::setSrcAddr ( const L3Address srcAddr)
virtual

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

Member Data Documentation

L3Address inet::UDPSendCommand::destAddr
protected
int inet::UDPSendCommand::destPort
protected
int inet::UDPSendCommand::interfaceId
protected
L3Address inet::UDPSendCommand::srcAddr
protected

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