Package: inet.applications.tcpapp
TelnetServerConnection
compound moduleContains a configurable pre-composed telnet traffic source and traffic sink as part of a telnet server application.
<b>See also:</b> ~TelnetClientApp, ~TelnetServerApp
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/app |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| socketIn | input | ||
| socketOut | output |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| cloner.displayStringTextFormat | string | "processed %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| multiplexer.displayStringTextFormat | string | "passed %p pk (%l)" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| multiplexer.forwardServiceRegistration | bool | true | |
| multiplexer.forwardProtocolRegistration | bool | true | |
| enterTokenGenerator.displayStringTextFormat | string | "processed %p pk (%l)\ngenerated %t tk\nto %s" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| enterTokenGenerator.storageModule | string | "^.responseServer" |
Module path of the token storage where the tokens are generated via C++ method call |
| enterTokenGenerator.numTokensPerPacket | double | 1 |
Number of tokens per consumed packet |
| enterTokenGenerator.numTokensPerBit | double | 0 |
Number of tokens per consumed bit |
| io.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| io.readSize | int | -1B |
Used only with autoRead==false |
| io.readDelay | double | -1s |
Used only with autoRead==false; delay for issuing a READ command after previous READ was satisfied; -1 means immediately, 0 means zero delay |
Source code
// // Contains a configurable pre-composed telnet traffic source and // traffic sink as part of a telnet server application. // // @see ~TelnetClientApp, ~TelnetServerApp // module TelnetServerConnection like IApp { parameters: @display("i=block/app"); gates: input socketIn; output socketOut; submodules: cloner: PacketCloner { parameters: @display("p=300,200"); } responseProvider: <default("PassivePacketSource")> like IPassivePacketSource { parameters: @display("p=100,100"); } responseServer: <default("TokenBasedServer")> like IPacketServer { parameters: @display("p=100,200"); } multiplexer: PacketMultiplexer { parameters: @display("p=200,300"); } classifier: <default("PacketClassifier")> like IPacketClassifier { parameters: classifierClass = default("inet::queueing::PacketCharacterOrEnterClassifier"); @display("p=500,200"); } characterConsumer: <default("PassivePacketSink")> like IPassivePacketSink { parameters: @display("p=400,300"); } enterTokenGenerator: PacketBasedTokenGenerator { parameters: storageModule = default("^.responseServer"); @display("p=600,300"); } io: TcpServerSocketIo { parameters: @display("p=300,400"); } connections: io.trafficOut --> cloner.in; cloner.out++ --> classifier.in; cloner.out++ --> multiplexer.in++; responseProvider.out --> responseServer.in; responseServer.out --> multiplexer.in++; classifier.out++ --> characterConsumer.in; classifier.out++ --> enterTokenGenerator.in; multiplexer.out --> { @display("m=s"); } --> io.trafficIn; io.socketOut --> { @display("m=s"); } --> socketOut; socketIn --> { @display("m=s"); } --> io.socketIn; }File: src/inet/applications/tcpapp/TelnetServerConnection.ned