famouso::mw::nl::UDPMultiCastNL Class Reference
#include <UDPMultiCastNL.h>
Data Structures | |
struct | info |
struct | SNN |
Public Types | |
typedef Packet< SNN > | Packet_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
typedef afp::MultiSubjectESeqReorderDuplicateConfig<SNN> famouso::mw::nl::UDPMultiCastNL::AFP_Config |
Default AFP configuration of this network layer (see AFP configuration in the Network Layer).
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 | ) |
Sends the given packet.
- Parameters:
-
p packet
References Packet< T >::data, Packet< T >::data_length, Packet< T >::fragment, famouso::mw::nl::UDPMultiCastNL::SNN::s, famouso::mw::nl::UDPMultiCastNL::SNN::snn, and Packet< T >::snn.
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 | |||
) |
handle called on receive
Will be called, whenever a packet was received.
References Packet< T >::data, Packet< T >::data_length, Packet< T >::fragment, famouso::mw::el::IncommingEventFromNL, famouso::mw::nl::UDPMultiCastNL::info::mtu, famouso::mw::nl::UDPMultiCastNL::SNN::s, famouso::mw::nl::UDPMultiCastNL::SNN::snn, and Packet< T >::snn.
Referenced by init().
UDPMultiCastNL::SNN famouso::mw::nl::UDPMultiCastNL::lastPacketSNN | ( | ) |
The documentation for this class was generated from the following files:
- include/mw/nl/UDPMultiCastNL.h
- src/mw/nl/UDPMultiCastNL.cc