|
EMANE
1.2.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, size_t otaMTU, Seconds partCheckThreshold, Seconds partTimeoutThreshold) |
| 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 62 of file otamanager.h.
| EMANE::OTAManager::OTAManager | ( | ) |
Definition at line 106 of file otamanager.cc.
| EMANE::OTAManager::~OTAManager | ( | ) |
Definition at line 116 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, | ||
| size_t | otaMTU, | ||
| Seconds | partCheckThreshold, | ||
| Seconds | partTimeoutThreshold | ||
| ) |
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 |
| otaMTU | MTU to enforce. Set to 0 to disable fragmentation |
| partCheckThreshold | Rate in seconds to check if part reassembly efforts should be abandoned due to missing fragments |
| partTimeoutThreshold | Threshold in seconds to wait for another fragment before abandoning a specific packet reassembly. |
Definition at line 431 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 409 of file otamanager.cc.
|
overridevirtual |
Send OTA packet
| id | NEM identifier |
| pkt | Downstream packet |
| msg | Control Message |
Implements EMANE::OTAProvider.
Definition at line 136 of file otamanager.cc.
| void EMANE::OTAManager::setStatEventCountRowLimit | ( | size_t | rows | ) |
Definition at line 131 of file otamanager.cc.
| void EMANE::OTAManager::setStatPacketCountRowLimit | ( | size_t | rows | ) |
Definition at line 126 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 421 of file otamanager.cc.