EMANE  1.2.1
EMANE::NEMOTAAdapter Class Reference

Over-the-Air adapter handles the intra and inter platform OTA transport. More...

#include <nemotaadapter.h>

Inheritance diagram for EMANE::NEMOTAAdapter:
EMANE::OTAUser EMANE::DownstreamTransport

Public Member Functions

 NEMOTAAdapter (NEMId id)
 
 ~NEMOTAAdapter ()
 
void processOTAPacket (UpstreamPacket &pkt, const ControlMessages &msgs)
 
void processDownstreamPacket (DownstreamPacket &pkt, const ControlMessages &msgs)
 
void open ()
 
void close ()
 
void setOTAProvider (OTAProvider *pOTAProvider)
 
virtual void setUpstreamTransport (UpstreamTransport *pUpstreamTransport)
 
void sendUpstreamPacket (UpstreamPacket &pkt, const ControlMessages &msgs=empty)
 
void sendUpstreamControl (const ControlMessages &msgs)
 

Static Public Attributes

static const ControlMessages empty
 

Protected Attributes

OTAProviderpOTAProvider_
 

Detailed Description

Over-the-Air adapter handles the intra and inter platform OTA transport.

Definition at line 55 of file nemotaadapter.h.

Constructor & Destructor Documentation

◆ NEMOTAAdapter()

EMANE::NEMOTAAdapter::NEMOTAAdapter ( NEMId  id)

Definition at line 42 of file nemotaadapter.cc.

◆ ~NEMOTAAdapter()

EMANE::NEMOTAAdapter::~NEMOTAAdapter ( )

Definition at line 62 of file nemotaadapter.cc.

Member Function Documentation

◆ close()

void EMANE::NEMOTAAdapter::close ( )

Definition at line 74 of file nemotaadapter.cc.

◆ open()

void EMANE::NEMOTAAdapter::open ( )

Definition at line 47 of file nemotaadapter.cc.

◆ processDownstreamPacket()

void EMANE::NEMOTAAdapter::processDownstreamPacket ( DownstreamPacket pkt,
const ControlMessages msgs 
)
virtual

process downstream packet

Parameters
pktreference to the DownstreamPacket
msgsreferenceto the ControlMessage

Implements EMANE::DownstreamTransport.

Definition at line 99 of file nemotaadapter.cc.

◆ processOTAPacket()

void EMANE::NEMOTAAdapter::processOTAPacket ( UpstreamPacket pkt,
const ControlMessages msgs 
)
virtual

process OTA packet

Parameters
pktDownstream packet
msgsControl Messages

Implements EMANE::OTAUser.

Definition at line 94 of file nemotaadapter.cc.

◆ sendUpstreamControl()

void EMANE::DownstreamTransport::sendUpstreamControl ( const ControlMessages msgs)
inlineinherited

Send upstream control message

Parameters
msgsReference to the ControlMessages

Definition at line 44 of file downstreamtransport.inl.

◆ sendUpstreamPacket()

void EMANE::DownstreamTransport::sendUpstreamPacket ( UpstreamPacket pkt,
const ControlMessages msgs = empty 
)
inlineinherited

Send upstream packet

Parameters
pktReference to the UpstreamPacket to process
msgsoptional reference to the ControlMessages

Definition at line 37 of file downstreamtransport.inl.

◆ setOTAProvider()

void EMANE::OTAUser::setOTAProvider ( OTAProvider pOTAProvider)
inlineinherited

Set the reference to the OTA provider

Parameters
pOTAProviderPointer the the OTA provider

Definition at line 68 of file otauser.h.

◆ setUpstreamTransport()

virtual void EMANE::DownstreamTransport::setUpstreamTransport ( UpstreamTransport pUpstreamTransport)
inlinevirtualinherited

Set the upstream transport.

Parameters
pUpstreamTransportPointer to the upstream transport of this downstream transport.

Reimplemented in EMANE::NEMStatefulLayer, EMANE::MACLayer, EMANE::ShimLayer, EMANE::PHYLayer, and EMANE::TransportLayer.

Definition at line 79 of file downstreamtransport.h.

Member Data Documentation

◆ empty

const EMANE::ControlMessages EMANE::DownstreamTransport::empty
staticinherited

Definition at line 102 of file downstreamtransport.h.

◆ pOTAProvider_

OTAProvider* EMANE::OTAUser::pOTAProvider_
protectedinherited

Definition at line 76 of file otauser.h.


The documentation for this class was generated from the following files: