Compound Module DirectHost

Package: inet.node.httptools
File: src/inet/node/httptools/DirectHost.ned

Simple host for the HttpTools project. The module is derived from the INET StandardHost module. All network infrastructure modules were removed; the node is a simple container for tcpApps. Suitable apps are the HttpBrowserDirect and HttpServerDirect modules from HttpTools. See the INET documentation for StandardHost and the provided examples on how to assign tcpApps to the module.

See also: HttpServerDirect

See also: HttpBrowserDirect

Author: Kristjan V. Jonsson ([email protected])

IHttpDirectApp

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.

Networks:

Name Type Description
HttpDirectFlash network

Flash crowd simulation

HttpDirectPair network

Simple scenario with a pair of nodes. Direct message passing used.

Parameters:

Name Type Default value Description
numTcpApps double 0

The number of tcpApps in the array

Properties:

Name Value Description
networkNode

Unassigned submodule parameters:

Name Type Default value Description
tcpApp.linkSpeed double

Used to model transmission delays.

Source code:

//
// Simple host for the HttpTools project. The module is derived from the INET
// StandardHost module. All network infrastructure modules were removed;
// the node is a simple container for tcpApps. Suitable apps are the HttpBrowserDirect
// and HttpServerDirect modules from HttpTools.
// See the INET documentation for StandardHost and the provided examples on how
// to assign tcpApps to the module.
//
// @see HttpServerDirect
// @see HttpBrowserDirect
//
// @author Kristjan V. Jonsson ([email protected])
//
module DirectHost
{
    parameters:
        @networkNode;
        double numTcpApps = default(0);     // The number of tcpApps in the array
    submodules:
        tcpApp[numTcpApps]: <> like IHttpDirectApp {
            parameters:
                @display("p=163,67;i=block/app");
        }
}