famouso::mw::nl::AWDSNL Class Reference
The AWDS network layer provides functionality for sending packets over the AWDS network. More...
#include <AWDSNL.h>
Data Structures | |
struct | info |
A Struct for holding informational constants. More... | |
Public Types | |
typedef famouso::mw::Subject | SNN |
type of an address | |
typedef Packet< SNN > | Packet_t |
type of a packet | |
typedef afp::MultiSubjectESeqReorderDuplicateConfig < SNN > | AFP_Config |
default AFP configuration of this network layer (see AFP configuration in the Network Layer) | |
Public Member Functions | |
AWDSNL () | |
default constructor | |
~AWDSNL () throw () | |
destructor | |
void | init () |
void | bind (const famouso::mw::Subject &s, SNN &snn) |
bind a subject | |
void | deliver (const Packet_t &p) |
deliver a packet. | |
void | fetch (Packet_t &p) |
processes incoming packets | |
SNN | lastPacketSNN () |
get last SSN |
Detailed Description
The AWDS network layer provides functionality for sending packets over the AWDS network.
Member Typedef Documentation
default AFP configuration of this network layer (see AFP configuration in the Network Layer)
typedef Packet<SNN> famouso::mw::nl::AWDSNL::Packet_t |
type of a packet
type of an address
Constructor & Destructor Documentation
famouso::mw::nl::AWDSNL::AWDSNL | ( | ) |
default constructor
famouso::mw::nl::AWDSNL::~AWDSNL | ( | ) | throw () |
destructor
Closes the socket.
Member Function Documentation
void famouso::mw::nl::AWDSNL::bind | ( | const famouso::mw::Subject & | s, | |
SNN & | snn | |||
) |
bind a subject
- Parameters:
-
s subject snn bound address
void famouso::mw::nl::AWDSNL::deliver | ( | const Packet_t & | p | ) |
deliver a packet.
Sends the given packet.
- Parameters:
-
[in] p packet
References famouso::mw::nl::awds::AWDS_Packet::Header::addr, famouso::mw::nl::awds::ComparableAttributeSet< AttrSet >::create(), Packet< T >::data, Packet< T >::data_length, famouso::mw::nl::awds::NodeRepository::elapsed(), famouso::mw::nl::awds::NodeRepository::find(), famouso::mw::attributes::access::AttributeSet_RT::find_rt(), famouso::mw::nl::awds::NodeRepository::flowid(), Packet< T >::fragment, famouso::mw::nl::awds::detail::FlowMgmtActionIDs::free, famouso::mw::attributes::AttributeSet< AttrSeq >::overallSize, famouso::mw::nl::awds::detail::FlowMgmtActionIDs::reg, famouso::mw::nl::awds::NodeRepository::reg(), famouso::mw::nl::awds::AWDS_Packet::Header::size, Packet< T >::snn, famouso::mw::nl::awds::AWDS_Packet::Header::type, famouso::mw::nl::awds::NodeRepository::unreg(), and famouso::mw::nl::awds::NodeRepository::update().
void famouso::mw::nl::AWDSNL::fetch | ( | Packet_t & | p | ) |
processes incoming packets
- Parameters:
-
p fetched packet is saved here
References Packet< T >::data, famouso::mw::nl::awds::AWDS_Packet::data, Packet< T >::data_length, famouso::mw::nl::awds::AWDS_Packet::header, and Packet< T >::snn.
void famouso::mw::nl::AWDSNL::init | ( | ) |
Sets the options for the socket and starts receiving.
References famouso::util::impl::start_ios().
AWDSNL::SNN famouso::mw::nl::AWDSNL::lastPacketSNN | ( | ) |
get last SSN
Returns the short network name for the last packet.
References famouso::mw::nl::awds::AWDS_Packet::data.
The documentation for this class was generated from the following files: