INET Framework for OMNeT++/OMNEST
|
Class generated from inet/transportlayer/contract/tcp/TCPCommand.msg:154
by nedtool.
More...
#include <TCPCommand_m.h>
Public Member Functions | |
TCPOpenCommand () | |
TCPOpenCommand (const TCPOpenCommand &other) | |
virtual | ~TCPOpenCommand () |
TCPOpenCommand & | operator= (const TCPOpenCommand &other) |
virtual TCPOpenCommand * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual L3Address & | getLocalAddr () |
virtual const L3Address & | getLocalAddr () const |
virtual void | setLocalAddr (const L3Address &localAddr) |
virtual L3Address & | getRemoteAddr () |
virtual const L3Address & | getRemoteAddr () const |
virtual void | setRemoteAddr (const L3Address &remoteAddr) |
virtual int | getLocalPort () const |
virtual void | setLocalPort (int localPort) |
virtual int | getRemotePort () const |
virtual void | setRemotePort (int remotePort) |
virtual bool | getFork () const |
virtual void | setFork (bool fork) |
virtual int | getDataTransferMode () const |
virtual void | setDataTransferMode (int dataTransferMode) |
virtual const char * | getTcpAlgorithmClass () const |
virtual void | setTcpAlgorithmClass (const char *tcpAlgorithmClass) |
Public Member Functions inherited from inet::TCPCommand | |
TCPCommand () | |
TCPCommand (const TCPCommand &other) | |
virtual | ~TCPCommand () |
TCPCommand & | operator= (const TCPCommand &other) |
virtual int | getConnId () const |
virtual void | setConnId (int connId) |
virtual int | getUserId () const |
virtual void | setUserId (int userId) |
Protected Member Functions | |
bool | operator== (const TCPOpenCommand &) |
Protected Member Functions inherited from inet::TCPCommand | |
bool | operator== (const TCPCommand &) |
Protected Attributes | |
L3Address | localAddr |
L3Address | remoteAddr |
int | localPort |
int | remotePort |
bool | fork |
int | dataTransferMode |
::omnetpp::opp_string | tcpAlgorithmClass |
Protected Attributes inherited from inet::TCPCommand | |
int | connId |
int | userId |
Private Member Functions | |
void | copy (const TCPOpenCommand &other) |
Class generated from inet/transportlayer/contract/tcp/TCPCommand.msg:154
by nedtool.
// // Control info to be used for active or passive TCP open. // // localAddr, remoteAddr, localPort, remotePort should be self-explanatory. // localAddr is optional because TCP can learn it from IP when a packet // is received from the peer; localPort is optional because TCP supports // ephemeral ports. // // The fork parameter is used with passive open, and controls what happens // when an incoming connection is received. With fork=true, it emulates // the Unix accept(2) syscall semantics: a new connection structure // is created for the connection (with a new connId, see in ~TCPCommand), // and the connection structure with the old connId remains listening. // With fork=false, all the above does not happen: the first connection // is accepted (with the original connId), and further incoming connections // will be refused by TCP by sending an RST segment. // // The dataTransferMode and tcpAlgorithmClass fields // allow per-connection TCP configuration. // The dataTransferMode field set the // The tcpAlgorithmClass field may contain name of class subclassed from // TCPAlgorithm, respectively. // If not set, module parameters with similar names are used. // // @see ~TcpCommandCode, ~ITCP // class TCPOpenCommand extends TCPCommand { L3Address localAddr; // may be left empty L3Address remoteAddr;// required for active open int localPort = -1; // required for passive open int remotePort = -1; // required for active open bool fork = false; // used only for passive open int dataTransferMode @enum(TCPDataTransferMode); // whether to transmit C++ objects, real bytes or just byte counts. See ~TCPDataTransferMode. string tcpAlgorithmClass; // TCP congestion control algorithm; leave empty for default }
inet::TCPOpenCommand::TCPOpenCommand | ( | ) |
inet::TCPOpenCommand::TCPOpenCommand | ( | const TCPOpenCommand & | other | ) |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::TCPCommand.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by getLocalAddr().
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by getRemoteAddr().
|
virtual |
|
virtual |
Referenced by inet::tcp::TCPConnection::initConnection().
TCPOpenCommand& inet::TCPOpenCommand::operator= | ( | const TCPOpenCommand & | other | ) |
|
protected |
|
overridevirtual |
Reimplemented from inet::TCPCommand.
Referenced by inet::doParsimPacking().
|
overridevirtual |
Reimplemented from inet::TCPCommand.
Referenced by inet::doParsimUnpacking().
|
virtual |
Referenced by inet::TCPSocket::connect(), and inet::TCPSocket::listen().
|
virtual |
Referenced by inet::TCPSocket::listen().
|
virtual |
Referenced by inet::TCPSocket::connect(), and inet::TCPSocket::listen().
|
virtual |
Referenced by inet::TCPSocket::connect(), and inet::TCPSocket::listen().
|
virtual |
Referenced by inet::TCPSocket::connect().
|
virtual |
Referenced by inet::TCPSocket::connect().
|
virtual |
Referenced by inet::TCPSocket::connect(), and inet::TCPSocket::listen().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |