TcpServerSocketIo

Package: inet.applications.tcpapp

TcpServerSocketIo

simple module

This 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 tofunctioninfo
MessageDispatcherinet::MessageDispatcher::arrivedarrived

Called methods (observed)

functioninfocall from
inet::TcpServerSocketIo::acceptSocketacceptSocketTcpServerListener

Incoming messages (observed)

gatemsgkindctrlsrcModuletags
socketInIndication4 (TcpStatusInd::TCP_I_ESTABLISHED)TcpConnectInfoTcpSocketInd
socketInPacket1 (TcpStatusInd::TCP_I_DATA)TcpSocketInd
trafficInPacket0PacketMultiplexerDirectionTag, PacketProtocolTag
trafficInPacket0MarkovSchedulerDirectionTag, PacketProtocolTag

Outgoing messages (observed)

gatemsgkindctrldestModuletags
socketOutPacket4 (TcpCommandCode::TCP_C_SEND)TcpDirectionTag, DispatchProtocolReq, PacketProtocolTag, SocketReq
socketOutRequest3 (TcpCommandCode::TCP_C_ACCEPT)TcpAcceptCommandTcpDispatchProtocolReq, SocketReq
trafficOutPacket1PacketQueue
trafficOutPacket1PassivePacketSink

Shared Tagging operations (observed)

tagTypetagAction
DispatchProtocolReqaddTagIfAbsent
SocketIndfindTag, removeTag
SocketReqaddTagIfAbsent

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