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

Class generated from inet/transportlayer/contract/udp/UdpControlInfo.msg:97 by opp_msgtool. 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 const L3AddressgetRemoteAddr () const
 
virtual L3AddressgetRemoteAddrForUpdate ()
 
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)
 

Protected Member Functions

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

Protected Attributes

L3Address remoteAddr
 
int remotePort = -1
 

Private Member Functions

void copy (const UdpConnectCommand &other)
 

Detailed Description

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

//
// 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;
}
//
// 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, tags not required, or destAddr/destPort may be left blank (send()),
// otherwise it must contain the destination for the packet (sendto()).
//
// @see ~UdpCommandCode, ~PortsReq, ~L3AddressReq, ~InterfaceReq
//

Constructor & Destructor Documentation

◆ UdpConnectCommand() [1/2]

inet::UdpConnectCommand::UdpConnectCommand ( )

◆ UdpConnectCommand() [2/2]

inet::UdpConnectCommand::UdpConnectCommand ( const UdpConnectCommand other)

◆ ~UdpConnectCommand()

virtual inet::UdpConnectCommand::~UdpConnectCommand ( )
virtual

Member Function Documentation

◆ copy()

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

◆ dup()

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

Reimplemented from inet::UdpControlInfo.

302 {return new UdpConnectCommand(*this);}

◆ getRemoteAddr()

virtual const L3Address& inet::UdpConnectCommand::getRemoteAddr ( ) const
virtual

◆ getRemoteAddrForUpdate()

virtual L3Address& inet::UdpConnectCommand::getRemoteAddrForUpdate ( )
inlinevirtual
307 { return const_cast<L3Address&>(const_cast<UdpConnectCommand*>(this)->getRemoteAddr());}

◆ getRemotePort()

virtual int inet::UdpConnectCommand::getRemotePort ( ) const
virtual

◆ operator=()

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

◆ operator==()

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

◆ parsimPack()

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

Reimplemented from inet::UdpControlInfo.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::UdpControlInfo.

Referenced by inet::doParsimUnpacking().

◆ setRemoteAddr()

virtual void inet::UdpConnectCommand::setRemoteAddr ( const L3Address remoteAddr)
virtual

◆ setRemotePort()

virtual void inet::UdpConnectCommand::setRemotePort ( int  remotePort)
virtual

Member Data Documentation

◆ remoteAddr

L3Address inet::UdpConnectCommand::remoteAddr
protected

◆ remotePort

int inet::UdpConnectCommand::remotePort = -1
protected

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