Package: inet.applications.tcpapp
TcpServerSocketIo
simple moduleThis module provides TCP server socket handling for generic TCP applications.
See also: TcpServerConnection, TcpClientSocketIo
Used in compound modules
Name | Type | Description |
---|---|---|
TcpServerConnection | compound module |
This module is a generic TCP server connection. The traffic source and traffic sink modules can be built from queueing model elements. |
TelnetServerConnection | compound module |
This module contains a configurable pre-composed telnet traffic source and traffic sink as part of a telnet server application. |
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 |
Called methods (observed)
function | info | call from |
---|---|---|
inet::TcpServerSocketIo::acceptSocket | acceptSocket | TcpServerListener |
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 | PacketMultiplexer | DirectionTag, PacketProtocolTag | |
trafficIn | Packet | 0 | MarkovScheduler | 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 | 3 (TcpCommandCode::TCP_C_ACCEPT) | TcpAcceptCommand | Tcp | DispatchProtocolReq, SocketReq |
trafficOut | Packet | 1 | PacketQueue | ||
trafficOut | Packet | 1 | PassivePacketSink |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
DispatchProtocolReq | addTagIfAbsent |
SocketInd | findTag, removeTag |
SocketReq | addTagIfAbsent |
Source code
// // This module provides TCP server socket handling for generic TCP applications. // // @see ~TcpServerConnection, ~TcpClientSocketIo // simple TcpServerSocketIo { parameters: @display("i=block/socket"); gates: input trafficIn; output trafficOut; input socketIn; output socketOut; }File: src/inet/applications/tcpapp/TcpServerSocketIo.ned