Menu

famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP > Class Template Reference

Policy: Reconstruct event data from fragments arriving in order. Does not support forward error correction. More...

#include <InOrderEventDataReconstructor.h>

Public Types

typedef NoFECHeaderSupport< DCP > FECHeaderPolicy

Public Member Functions

 InOrderEventDataReconstructor (flen_t no_ext_mtu)
 Constructor.
 ~InOrderEventDataReconstructor ()
 Destructor.
void put_fragment (const Headers< DCP > &header, const uint8_t *data, flen_t length)
 Process new fragment.
bool is_complete ()
 Returns whether the event already got reconstructed completely.
uint8_t * get_data ()
 Returns the defragmented data block.
elen_t get_length ()
 Returns the length of the event's data.
bool error ()
 Returns true if an error occured and event cannot be reconstructed for sure.

Detailed Description

template<class DCP>
class famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >

Policy: Reconstruct event data from fragments arriving in order. Does not support forward error correction.

Using this policy automatically selects NoFECHeaderSupport as FEC header policy.

Alternative policies: OutOfOrderEventDataReconstructor, FECEventDataReconstructor


Member Typedef Documentation


Constructor & Destructor Documentation

template<class DCP >
famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::InOrderEventDataReconstructor ( flen_t  no_ext_mtu  )  [inline]

Constructor.

Parameters:
no_ext_mtu MTU minus extension header's length

Member Function Documentation

template<class DCP >
bool famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::error (  )  [inline]

Returns true if an error occured and event cannot be reconstructed for sure.

Referenced by famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::get_data().

template<class DCP >
uint8_t* famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::get_data (  )  [inline]
template<class DCP >
elen_t famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::get_length (  )  [inline]

Returns the length of the event's data.

Precondition:
is_complete() returns true

References FAMOUSO_ASSERT, and famouso::mw::afp::defrag::InOrderEventDataReconstructor< DCP >::is_complete().


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