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

Class generated from inet/transportlayer/contract/tcp/TcpCommand.msg:176 by opp_msgtool. More...

#include <TcpCommand_m.h>

Inheritance diagram for inet::TcpConnectInfo:
inet::TcpCommand

Public Member Functions

 TcpConnectInfo ()
 
 TcpConnectInfo (const TcpConnectInfo &other)
 
virtual ~TcpConnectInfo ()
 
TcpConnectInfooperator= (const TcpConnectInfo &other)
 
virtual TcpConnectInfodup () 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 const L3AddressgetRemoteAddr () const
 
virtual L3AddressgetRemoteAddrForUpdate ()
 
virtual void setRemoteAddr (const L3Address &remoteAddr)
 
virtual int getLocalPort () const
 
virtual void setLocalPort (int localPort)
 
virtual int getRemotePort () const
 
virtual void setRemotePort (int remotePort)
 
- Public Member Functions inherited from inet::TcpCommand
 TcpCommand ()
 
 TcpCommand (const TcpCommand &other)
 
virtual ~TcpCommand ()
 
TcpCommandoperator= (const TcpCommand &other)
 
virtual int getUserId () const
 
virtual void setUserId (int userId)
 

Protected Member Functions

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

Protected Attributes

L3Address localAddr
 
L3Address remoteAddr
 
int localPort = 0
 
int remotePort = 0
 
- Protected Attributes inherited from inet::TcpCommand
int userId = -1
 

Private Member Functions

void copy (const TcpConnectInfo &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/tcp/TcpCommand.msg:176 by opp_msgtool.

//
// Sent with message kind TCP_I_ESTABLISHED, to let the app know
// about the local and remote IP address and port.
//
// @see ~TcpCommandCode, ~ITcp
//
class TcpConnectInfo extends TcpCommand
{
    L3Address localAddr;
    L3Address remoteAddr;
    int localPort;
    int remotePort;
}

Constructor & Destructor Documentation

◆ TcpConnectInfo() [1/2]

inet::TcpConnectInfo::TcpConnectInfo ( )

◆ TcpConnectInfo() [2/2]

inet::TcpConnectInfo::TcpConnectInfo ( const TcpConnectInfo other)

◆ ~TcpConnectInfo()

virtual inet::TcpConnectInfo::~TcpConnectInfo ( )
virtual

Member Function Documentation

◆ copy()

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

◆ dup()

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

Reimplemented from inet::TcpCommand.

617 {return new TcpConnectInfo(*this);}

◆ getLocalAddr()

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

◆ getLocalAddrForUpdate()

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

◆ getLocalPort()

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

◆ getRemoteAddr()

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

◆ getRemoteAddrForUpdate()

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

◆ getRemotePort()

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

◆ operator=()

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

◆ operator==()

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

◆ parsimPack()

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

Reimplemented from inet::TcpCommand.

Referenced by inet::doParsimPacking().

◆ parsimUnpack()

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

Reimplemented from inet::TcpCommand.

Referenced by inet::doParsimUnpacking().

◆ setLocalAddr()

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

◆ setLocalPort()

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

◆ setRemoteAddr()

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

◆ setRemotePort()

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

Member Data Documentation

◆ localAddr

L3Address inet::TcpConnectInfo::localAddr
protected

◆ localPort

int inet::TcpConnectInfo::localPort = 0
protected

◆ remoteAddr

L3Address inet::TcpConnectInfo::remoteAddr
protected

◆ remotePort

int inet::TcpConnectInfo::remotePort = 0
protected

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