EMANE  1.2.1
EMANE::NEMNetworkAdapter Class Reference

Entry point for packets and crontrol sourced and sinked from the network layer. More...

#include <nemnetworkadapter.h>

Inheritance diagram for EMANE::NEMNetworkAdapter:
EMANE::UpstreamTransport EMANE::BoundaryMessageManager

Public Types

enum  Protocol { Protocol::PROTOCOL_UDP, Protocol::PROTOCOL_TCP_SERVER, Protocol::PROTOCOL_TCP_CLIENT }
 

Public Member Functions

 NEMNetworkAdapter (NEMId id)
 
 ~NEMNetworkAdapter ()
 
void processUpstreamPacket (UpstreamPacket &pkt, const ControlMessages &msgs) override
 
void processUpstreamControl (const ControlMessages &msgs) override
 
virtual void setDownstreamTransport (DownstreamTransport *pDownstreamTransport)
 
void sendDownstreamPacket (DownstreamPacket &pkt, const ControlMessages &msgs=empty)
 
void sendDownstreamControl (const ControlMessages &msgs)
 
void open (const INETAddr &localAddress, const INETAddr &remoteAddress, Protocol protocol)
 
void close ()
 
void processBoundaryMessage (const void *pData, size_t length)
 
void sendPacketMessage (const PacketInfo &packetInfo, const void *pPacketData, size_t packetLength, const ControlMessages &msgs)
 
void sendPacketMessage (const PacketInfo &packetInfo, const Utils::VectorIO &packetIO, size_t overallLength, const ControlMessages &msgs)
 
void sendControlMessage (const ControlMessages &msgs)
 

Static Public Attributes

static const ControlMessages empty
 

Detailed Description

Entry point for packets and crontrol sourced and sinked from the network layer.

Definition at line 50 of file nemnetworkadapter.h.

Member Enumeration Documentation

◆ Protocol

Enumerator
PROTOCOL_UDP 
PROTOCOL_TCP_SERVER 
PROTOCOL_TCP_CLIENT 

Definition at line 54 of file boundarymessagemanager.h.

Constructor & Destructor Documentation

◆ NEMNetworkAdapter()

EMANE::NEMNetworkAdapter::NEMNetworkAdapter ( NEMId  id)

Definition at line 37 of file nemnetworkadapter.cc.

◆ ~NEMNetworkAdapter()

EMANE::NEMNetworkAdapter::~NEMNetworkAdapter ( )

Definition at line 40 of file nemnetworkadapter.cc.

Member Function Documentation

◆ close()

void EMANE::BoundaryMessageManager::close ( )
inherited

Definition at line 118 of file boundarymessagemanager.cc.

◆ open()

void EMANE::BoundaryMessageManager::open ( const INETAddr localAddress,
const INETAddr remoteAddress,
Protocol  protocol 
)
inherited
Exceptions
BoundaryMessageManagerException

Definition at line 66 of file boundarymessagemanager.cc.

◆ processBoundaryMessage()

void EMANE::BoundaryMessageManager::processBoundaryMessage ( const void *  pData,
size_t  length 
)
inherited

◆ processUpstreamControl()

void EMANE::NEMNetworkAdapter::processUpstreamControl ( const ControlMessages msgs)
overridevirtual

Process upstream control message

Parameters
msgsreference to the ControlMessages

Implements EMANE::UpstreamTransport.

Definition at line 51 of file nemnetworkadapter.cc.

◆ processUpstreamPacket()

void EMANE::NEMNetworkAdapter::processUpstreamPacket ( UpstreamPacket pkt,
const ControlMessages msgs 
)
overridevirtual

Process upstream packet

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

Implements EMANE::UpstreamTransport.

Definition at line 42 of file nemnetworkadapter.cc.

◆ sendControlMessage()

void EMANE::BoundaryMessageManager::sendControlMessage ( const ControlMessages msgs)
inherited

Definition at line 253 of file boundarymessagemanager.cc.

◆ sendDownstreamControl()

void EMANE::UpstreamTransport::sendDownstreamControl ( const ControlMessages msgs)
inlineinherited

Send downstream control message

Parameters
msgsreference to the ControlMessages

Definition at line 44 of file upstreamtransport.inl.

◆ sendDownstreamPacket()

void EMANE::UpstreamTransport::sendDownstreamPacket ( DownstreamPacket pkt,
const ControlMessages msgs = empty 
)
inlineinherited

Send downsteam packet

Parameters
pktreference to the DownstreamPacket to process
msgsoptional reference to the ControlMessages

Definition at line 37 of file upstreamtransport.inl.

◆ sendPacketMessage() [1/2]

void EMANE::BoundaryMessageManager::sendPacketMessage ( const PacketInfo packetInfo,
const void *  pPacketData,
size_t  packetLength,
const ControlMessages msgs 
)
inherited

Definition at line 148 of file boundarymessagemanager.cc.

◆ sendPacketMessage() [2/2]

void EMANE::BoundaryMessageManager::sendPacketMessage ( const PacketInfo packetInfo,
const Utils::VectorIO packetIO,
size_t  overallLength,
const ControlMessages msgs 
)
inherited

Definition at line 160 of file boundarymessagemanager.cc.

◆ setDownstreamTransport()

virtual void EMANE::UpstreamTransport::setDownstreamTransport ( DownstreamTransport pDownstreamTransport)
inlinevirtualinherited

Set the downstream transport.

Parameters
pDownstreamTransportPointer to the downstream transport of this upstream transport.
Note
: This method is for internal framework use only.

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

Definition at line 82 of file upstreamtransport.h.

Member Data Documentation

◆ empty

const EMANE::ControlMessages EMANE::UpstreamTransport::empty
staticinherited

Definition at line 106 of file upstreamtransport.h.


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