|
EMANE
1.0.1
|
Provides OTA access to all platform NEMs and handles intra and inter platform OTA message dissemination. More...
#include <otamanager.h>
Public Member Functions | |
| OTAManager () | |
| ~OTAManager () | |
| void | sendOTAPacket (NEMId id, const DownstreamPacket &pkt, const ControlMessages &msgs) const override |
| void | registerOTAUser (NEMId id, OTAUser *pOTAUser) override |
| void | unregisterOTAUser (NEMId id) override |
| void | open (const INETAddr &otaGroupAddress, const std::string &sDevice, bool bLoopback, int iTTL, const uuid_t &uuid) |
| void | setStatPacketCountRowLimit (size_t rows) |
| void | setStatEventCountRowLimit (size_t rows) |
Static Public Member Functions | |
| static OTAManager * | instance () |
| static void | destroy () |
Provides OTA access to all platform NEMs and handles intra and inter platform OTA message dissemination.
Definition at line 61 of file otamanager.h.
| EMANE::OTAManager::OTAManager | ( | ) |
Definition at line 53 of file otamanager.cc.
| EMANE::OTAManager::~OTAManager | ( | ) |
Definition at line 61 of file otamanager.cc.
|
inlinestaticinherited |
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
|
inlinestaticinherited |
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
Definition at line 56 of file singleton.h.
| void EMANE::OTAManager::open | ( | const INETAddr & | otaGroupAddress, |
| const std::string & | sDevice, | ||
| bool | bLoopback, | ||
| int | iTTL, | ||
| const uuid_t & | uuid | ||
| ) |
Open the event server channel
| otaGroupAddress | Multicast group address of event service OTA channel |
| sDevice | Name of the OTA device |
| bLoopback | Flag indicating whether to set LOOPBACK socket option |
| iTTL | Mutlicast TTL |
| uuid | Emulator instance UUID |
Definition at line 292 of file otamanager.cc.
Register an OTA user
| id | NEM identifier |
| pOTAUser | OTAUser reference |
| OTAEception | when an error occurs during unregister |
Implements EMANE::OTAProvider.
Definition at line 270 of file otamanager.cc.
|
overridevirtual |
Send OTA packet
| id | NEM identifier |
| pkt | Downstream packet |
| msg | Control Message |
Implements EMANE::OTAProvider.
Definition at line 81 of file otamanager.cc.
| void EMANE::OTAManager::setStatEventCountRowLimit | ( | size_t | rows | ) |
Definition at line 76 of file otamanager.cc.
| void EMANE::OTAManager::setStatPacketCountRowLimit | ( | size_t | rows | ) |
Definition at line 71 of file otamanager.cc.
|
overridevirtual |
Unregister an OTA user
| id | NEM identifier |
| OTAEception | when an error occurs during unregister |
Implements EMANE::OTAProvider.
Definition at line 282 of file otamanager.cc.