IpSocketIo
Package: inet.applications.ipapp
IpSocketIo
simple moduleProvides IP socket handling for generic applications.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in compound modules
| Name | Type | Description |
|---|---|---|
| IpApp | compound module |
Generates traffic for a IP application. The traffic source and traffic sink modules can be built from queueing model elements. |
Extends
| Name | Type | Description |
|---|---|---|
| SimpleModule | simple module |
Base module for all INET simple modules. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| interfaceTableModule | string | ||
| localAddress | string | "" | |
| destAddress | string | "" | |
| protocol | string | "" | |
| stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finishes |
| stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
Properties
| Name | Value | Description |
|---|---|---|
| class | IpSocketIo | |
| lifecycleSupport | ||
| display | i=block/socket |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| trafficIn | input | ||
| trafficOut | output | ||
| socketIn | input | ||
| socketOut | output |
Signals
| Name | Type | Unit | Description |
|---|---|---|---|
| packetReceived | inet::Packet | ||
| packetSent | inet::Packet |
Statistics
| Name | Title | Source | Record | Unit | Interpolation Mode | Description |
|---|---|---|---|---|---|---|
| packetReceived | packets received | packetReceived | count, sum(packetBytes), vector(packetBytes) | none | ||
| packetSent | packets sent | packetSent | count, sum(packetBytes), vector(packetBytes) | none |
Source code
// // Provides IP socket handling for generic applications. // simple IpSocketIo extends SimpleModule { parameters: @class(IpSocketIo); string interfaceTableModule; string localAddress = default(""); string destAddress = default(""); string protocol = default(""); double stopOperationExtraTime @unit(s) = default(-1s); // Extra time after lifecycle stop operation finishes double stopOperationTimeout @unit(s) = default(2s); // Timeout value for lifecycle stop operation @lifecycleSupport(); @display("i=block/socket"); @signal[packetSent](type=inet::Packet); @signal[packetReceived](type=inet::Packet); @statistic[packetSent](title="packets sent"; source=packetSent; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); @statistic[packetReceived](title="packets received"; source=packetReceived; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); gates: input trafficIn; output trafficOut; input socketIn; output socketOut; }File: src/inet/applications/ipapp/IpSocketIo.ned