NED File src/inet/applications/ethernet/EthernetSocketIo.ned
Name | Type | Description |
---|---|---|
EthernetSocketIo | simple module |
This module provides Ethernet socket handling for generic applications. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.applications.ethernet; // // This module provides Ethernet socket handling for generic applications. // simple EthernetSocketIo { parameters: string interfaceTableModule; // relative module path of the interface table string interface = default(""); // network interface name string localAddress = default(""); // local Ethernet MAC address string remoteAddress = default(""); // remove Ethernet MAC address double stopOperationExtraTime @unit(s) = default(-1s); // extra time after lifecycle stop operation finished 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; }