UnstructuredIo.h Source File¶ Simu5G: UnstructuredIo.h Source File Simu5G releasesrcsimu5gappsunstructured UnstructuredIo.h 1// 2// Simu5G 3// 4// Copyright (C) 2026 Andras Varga (OpenSim Ltd) 5// 6// This file is part of a software released under the license included in file 7// "license.pdf". Please read LICENSE and README files before using it. 8// The above files and the present reference are part of the software itself, 9// and cannot be removed from it. 10// 11 12#ifndef _UNSTRUCTUREDIO_H_ 13#define _UNSTRUCTUREDIO_H_ 14 15#include <inet/common/packet/Packet.h> 16 17namespace simu5g { 18 24class UnstructuredIo : public omnetpp::cSimpleModule 25{ 26 protected: 27 int interfaceId_ = -1; // the cellular NIC's interface id, resolved on first use 28 int numSent_ = 0; 29 int numReceived_ = 0; 30 31 protected: 32 int numInitStages() const override { return inet::NUM_INIT_STAGES; } 33 void initialize(int stage) override; 34 void handleMessage(omnetpp::cMessage *msg) override; 35 void finish() override; 36 37 // The interface id of the cellular NIC the payload goes through 38 virtual int getInterfaceId(); 39}; 40 41} //namespace 42 43#endif simu5g::UnstructuredIoDefinition UnstructuredIo.h:25 simu5gDefinition AlertReceiver.h:24 Generated by 1.14.0