HttpServerDirect

Package: inet.applications.httptools.server

HttpServerDirect

simple module

A Web server module for OMNeT++ simulations and direct message passing between modules. This module is intended for use with the HttpDirectHost module and plugs in as a tcpApp.

See also: HttpServerBase, HttpServer, HttpDirectHost

Author: Kristjan V. Jonsson

HttpServerDirect

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters

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.

httpControllerModule string "httpController"

Module path for the HttpController module.

Properties

Name Value Description
lifecycleSupport

Gates

Name Direction Size Description
httpIn input

Source code

//
// A Web server module for OMNeT++ simulations and direct message passing between modules.
// This module is intended for use with the HttpDirectHost module and plugs in as a tcpApp.
//
// @see ~HttpServerBase, ~HttpServer, ~HttpDirectHost
//
// @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.
        string httpControllerModule = default("httpController"); // Module path for the ~HttpController module.
        @lifecycleSupport;
    gates:
        input httpIn @directIn;
}

File: src/inet/applications/httptools/server/HttpServerDirect.ned