Package: inet.applications.tcpapp
TcpClientSocketIo
simple moduleThis module provides TCP client socket handling for generic TCP applications.
See also: TcpServerSocketIo
Used in compound modules
Name | Type | Description |
---|---|---|
TcpClientApp | compound module |
This module is a generic TCP client application. The traffic source and traffic sink modules can be built from queueing model elements. |
TelnetClientApp | compound module |
This client application contains a configurable pre-composed telnet traffic source and traffic sink. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
localAddress | string | "" | |
localPort | int | -1 | |
connectAddress | string | ||
connectPort | int |
Properties
Name | Value | Description |
---|---|---|
display | i=block/socket |
Gates
Name | Direction | Size | Description |
---|---|---|---|
trafficIn | input | ||
trafficOut | output | ||
socketIn | input | ||
socketOut | output |
Direct method calls (observed)
call to | function | info |
---|---|---|
MessageDispatcher | inet::MessageDispatcher::arrived | arrived |
Incoming messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
socketIn | Indication | 4 (TcpStatusInd::TCP_I_ESTABLISHED) | TcpConnectInfo | Tcp | SocketInd |
socketIn | Packet | 1 (TcpStatusInd::TCP_I_DATA) | Tcp | SocketInd | |
trafficIn | Packet | 0 | ActivePacketSource | DirectionTag, PacketProtocolTag |
Outgoing messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
socketOut | Packet | 4 (TcpCommandCode::TCP_C_SEND) | Tcp | DirectionTag, DispatchProtocolReq, PacketProtocolTag, SocketReq | |
socketOut | Request | 1 (TcpCommandCode::TCP_C_OPEN_ACTIVE) | TcpOpenCommand | Tcp | DispatchProtocolReq, SocketReq |
trafficOut | Packet | 1 | PassivePacketSink |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
DispatchProtocolReq | addTagIfAbsent |
SocketInd | findTag, removeTag |
SocketReq | addTagIfAbsent |
Tagging operations (observed)
tagType | tagAction |
---|---|
inet::Ipv4InterfaceData | findTag |
Source code
// // This module provides TCP client socket handling for generic TCP applications. // // @see ~TcpServerSocketIo // simple TcpClientSocketIo { parameters: string localAddress = default(""); int localPort = default(-1); string connectAddress; int connectPort; @display("i=block/socket"); gates: input trafficIn; output trafficOut; input socketIn; output socketOut; }File: src/inet/applications/tcpapp/TcpClientSocketIo.ned