Menu

famouso::mw::nl::AWDSNL Class Reference

The AWDS network layer provides functionality for sending packets over the AWDS network. More...

#include <AWDSNL.h>

Inheritance diagram for famouso::mw::nl::AWDSNL:
famouso::mw::nl::DistinctNL

Data Structures

struct  info
 A Struct for holding informational constants. More...

Public Types

typedef famouso::mw::Subject SNN
 type of an address
typedef Packet< SNNPacket_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

type of a packet


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::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: