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

Class generated from inet/transportlayer/contract/tcp/TCPCommand.msg:91 by nedtool. More...

#include <TCPCommand_m.h>

Inheritance diagram for inet::TCPCommand:
inet::TCPConnectInfo inet::TCPErrorInfo inet::TCPOpenCommand inet::TCPSendCommand inet::TCPStatusInfo

Public Member Functions

 TCPCommand ()
 
 TCPCommand (const TCPCommand &other)
 
virtual ~TCPCommand ()
 
TCPCommandoperator= (const TCPCommand &other)
 
virtual TCPCommanddup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getConnId () const
 
virtual void setConnId (int connId)
 
virtual int getUserId () const
 
virtual void setUserId (int userId)
 

Protected Member Functions

bool operator== (const TCPCommand &)
 

Protected Attributes

int connId
 
int userId
 

Private Member Functions

void copy (const TCPCommand &other)
 

Detailed Description

Class generated from inet/transportlayer/contract/tcp/TCPCommand.msg:91 by nedtool.

//
// Control info for TCP connections. This class is to be set as control info
// (see cMessage::setControlInfo()) on all messages exchanged between TCP and
// application, in both directions. Some commands and indications
// (TCP_C_OPEN_xxx, TCP_I_STATUS) use subclasses.
//
// connId identifies the connection locally within the application (internally,
// TCP uses the (app gate index, connId) pair to identify the socket).
// connId is to be chosen by the application in the open command.
//
//# TODO explain userId
//
// @see ~TcpCommandCode, ~TcpStatusInd, ~TCPOpenCommand, ~TCPStatusInfo, ~ITCP
//
class TCPCommand
{
    int connId = -1;   // identifies the socket within the application
    int userId = -1;   // id than can be freely used by the app
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::TCPCommand::copy ( const TCPCommand other)
private
virtual TCPCommand* inet::TCPCommand::dup ( ) const
inlineoverridevirtual
virtual int inet::TCPCommand::getUserId ( ) const
virtual
TCPCommand& inet::TCPCommand::operator= ( const TCPCommand other)
bool inet::TCPCommand::operator== ( const TCPCommand )
protected
virtual void inet::TCPCommand::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::TCPCommand::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual
virtual void inet::TCPCommand::setUserId ( int  userId)
virtual

Member Data Documentation

int inet::TCPCommand::connId
protected
int inet::TCPCommand::userId
protected

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