EMANE
1.2.1
|
Entry point for packets and crontrol sourced and sinked from the network layer. More...
#include <nemnetworkadapter.h>
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 |
Entry point for packets and crontrol sourced and sinked from the network layer.
Definition at line 50 of file nemnetworkadapter.h.
|
stronginherited |
Enumerator | |
---|---|
PROTOCOL_UDP | |
PROTOCOL_TCP_SERVER | |
PROTOCOL_TCP_CLIENT |
Definition at line 54 of file boundarymessagemanager.h.
EMANE::NEMNetworkAdapter::NEMNetworkAdapter | ( | NEMId | id | ) |
Definition at line 37 of file nemnetworkadapter.cc.
EMANE::NEMNetworkAdapter::~NEMNetworkAdapter | ( | ) |
Definition at line 40 of file nemnetworkadapter.cc.
|
inherited |
Definition at line 118 of file boundarymessagemanager.cc.
|
inherited |
BoundaryMessageManagerException |
Definition at line 66 of file boundarymessagemanager.cc.
|
inherited |
|
overridevirtual |
Process upstream control message
msgs | reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 51 of file nemnetworkadapter.cc.
|
overridevirtual |
Process upstream packet
pkt | reference to the UpstreamPacket to process |
msgs | optional reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 42 of file nemnetworkadapter.cc.
|
inherited |
Definition at line 253 of file boundarymessagemanager.cc.
|
inlineinherited |
Send downstream control message
msgs | reference to the ControlMessages |
Definition at line 44 of file upstreamtransport.inl.
|
inlineinherited |
Send downsteam packet
pkt | reference to the DownstreamPacket to process |
msgs | optional reference to the ControlMessages |
Definition at line 37 of file upstreamtransport.inl.
|
inherited |
Definition at line 148 of file boundarymessagemanager.cc.
|
inherited |
Definition at line 160 of file boundarymessagemanager.cc.
|
inlinevirtualinherited |
Set the downstream transport.
pDownstreamTransport | Pointer to the downstream transport of this upstream transport. |
Reimplemented in EMANE::NEMStatefulLayer, EMANE::PHYLayer, EMANE::MACLayer, EMANE::ShimLayer, and EMANE::TransportLayer.
Definition at line 82 of file upstreamtransport.h.
|
staticinherited |
Definition at line 106 of file upstreamtransport.h.