Simple Module HttpBrowserDirect

Package: inet.applications.httptools.browser
File: src/inet/applications/httptools/browser/HttpBrowserDirect.ned

C++ definition

This component is the direct message passing version of the browser simulation component. It is derived from HttpBrowserBase. Use this component with the DirectHost container module.

Direct message passing is used for transmission, thus bypassing the normal links and interfaces. A linkSpeed parameter is hence needed to model transmission delays.

See also: DirectHost

See also: HttpBrowserBase

See also: HttpBrowser

Author: Kristjan V. Jonsson

HttpBrowserDirect

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.

Parameters:

Name Type Default value Description
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 a browser log file. Browse events are appended, allowing sharing of file for multiple browsers.

scriptFile string ""

The browsing script file. Blank to disable.

activationTime double 0s

The initial activation delay. Zero to disable (seconds).

linkSpeed double 11Mbps

Used to model transmission delays (Bit/s)

config xml

The XML configuration file for the browser

httpBrowserControllerModule string "controller"

the absolute path to the http browser controller,

See also: HttpController

Gates:

Name Direction Size Description
httpIn input

Source code:

//
// This component is the direct message passing version of the browser simulation
// component. It is derived from HttpBrowserBase. Use this component with the
// DirectHost container module.
//
// Direct message passing is used for transmission, thus bypassing the normal links and
// interfaces. A linkSpeed parameter is hence needed to model transmission delays.
//
// @see DirectHost
// @see HttpBrowserBase
// @see HttpBrowser
//
// @author  Kristjan V. Jonsson
//
simple HttpBrowserDirect like IHttpDirectApp
{
    parameters:
        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 a browser log file. Browse events are appended, allowing sharing of file for multiple browsers.
        string scriptFile = default("");               // The browsing script file. Blank to disable.
        double activationTime @unit(s) = default(0s);  // The initial activation delay. Zero to disable (seconds).
        double linkSpeed @unit(bps) = default(11Mbps); // Used to model transmission delays (Bit/s)
        xml config;                                    // The XML configuration file for the browser
        string httpBrowserControllerModule = default("controller"); // the absolute path to the http browser controller, @see HttpController
    gates:
        input httpIn @directIn;
}