A Web server module for OMNeT++ simulations and direct message passing between modules. This module is intended for use with the DirectHost module and plugs in as a tcpApp.
See also: HttpServerBase
See also: HttpServer
See also: DirectHost
Author: Kristjan V. Jonsson
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Default value | Description |
---|---|---|---|
hostName | string | "" |
The domain name of the server |
port | int | 80 |
The listening port number |
httpProtocol | int | 11 |
The http protocol: 10 for http/1.0, 11 for http/1.1. Not used at the present time. |
logFile | string | "" |
Name of server log file. Events are appended, allowing sharing of file for multiple servers. |
siteDefinition | string | "" |
The site script file. Blank to disable. |
activationTime | double | 0s |
The initial activation delay. Zero to disable. |
linkSpeed | double | 11Mbps |
Used to model transmission delays. |
config | xml |
The XML configuration file for random sites |
Name | Direction | Size | Description |
---|---|---|---|
httpIn | input |
// // A Web server module for OMNeT++ simulations and direct message passing between modules. // This module is intended for use with the DirectHost module and plugs in as a tcpApp. // // @see HttpServerBase // @see HttpServer // @see DirectHost // // @author Kristjan V. Jonsson // simple HttpServerDirect like IHttpDirectApp { parameters: string hostName = default(""); // The domain name of the server int port = default(80); // The listening port number int httpProtocol = default(11); // The http protocol: 10 for http/1.0, 11 for http/1.1. Not used at the present time. string logFile = default(""); // Name of server log file. Events are appended, allowing sharing of file for multiple servers. string siteDefinition = default(""); // The site script file. Blank to disable. double activationTime @unit(s) = default(0s); // The initial activation delay. Zero to disable. double linkSpeed @unit(bps) = default(11Mbps); // Used to model transmission delays. xml config; // The XML configuration file for random sites gates: input httpIn @directIn; }