Menu

famouso::mw::nl::UDPMultiCastNL Class Reference

#include <UDPMultiCastNL.h>

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

Data Structures

struct  info
struct  SNN

Public Types

typedef Packet< SNNPacket_t
typedef
afp::MultiSubjectESeqReorderDuplicateConfig
< SNN
AFP_Config
 Default AFP configuration of this network layer (see AFP configuration in the Network Layer).

Public Member Functions

 UDPMultiCastNL ()
 default constructor
 ~UDPMultiCastNL ()
 destructor
void init ()
void bind (const famouso::mw::Subject &s, SNN &snn)
 subscribe a subject
void deliver (const Packet_t &p)
 Sends the given packet.
void fetch (Packet_t &p)
 processes incoming packets
SNN lastPacketSNN ()
 get last SSN
void interrupt (const boost::system::error_code &error, size_t bytes_recvd)
 handle called on receive

Member Typedef Documentation


Constructor & Destructor Documentation

famouso::mw::nl::UDPMultiCastNL::UDPMultiCastNL (  ) 

default constructor

Sets local variables and calls init.

References famouso::util::impl::start_ios().

famouso::mw::nl::UDPMultiCastNL::~UDPMultiCastNL (  ) 

destructor

Closes the socket.


Member Function Documentation

void famouso::mw::nl::UDPMultiCastNL::bind ( const famouso::mw::Subject s,
SNN snn 
)

subscribe a subject

Start listening on the multicast-address that belongs to the subject.

Parameters:
s subject
snn bound address

References famouso::mw::nl::UDPMultiCastNL::SNN::s, famouso::mw::nl::UDPMultiCastNL::SNN::snn, and UID::tab().

void famouso::mw::nl::UDPMultiCastNL::deliver ( const Packet_t p  ) 
void famouso::mw::nl::UDPMultiCastNL::fetch ( Packet_t p  ) 

processes incoming packets

Parameters:
p fetched packet is saved here
void famouso::mw::nl::UDPMultiCastNL::init (  ) 

Sets the options for the socket and starts receiving.

References interrupt(), and famouso::mw::nl::UDPMultiCastNL::info::mtu.

void famouso::mw::nl::UDPMultiCastNL::interrupt ( const boost::system::error_code &  error,
size_t  bytes_recvd 
)
UDPMultiCastNL::SNN famouso::mw::nl::UDPMultiCastNL::lastPacketSNN (  ) 

get last SSN

Returns the short network name for the last packet.

References Packet< T >::snn.


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