Class TCPConnectInfo

File: Transport/Contract/TCPCommand.msg

C++ definition: click here

Sent with message kind TCP_I_ESTABLISHED, to let the app know about the local and remote IP address and port.

See also: TcpCommandCode, TCP

Inheritance diagram:

The following diagram shows part of the inheritance hierarchy. Unresolved types are missing from the diagram. Click here to see the full picture.

TCPConnectInfo TCPCommand

Extends:

TCPCommand

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.

Properties:

Name Value Description
omitGetVerb true

Fields:

Name Type Description
localAddr IPvXAddress
remoteAddr IPvXAddress
localPort int
remotePort int

Source code:

class TCPConnectInfo extends TCPCommand
{
    properties:
        omitGetVerb = true;
    fields:
        IPvXAddress localAddr;
        IPvXAddress remoteAddr;
        int localPort;
        int remotePort;
};