RTC Toolkit
1.0.0
|
Processing MUDPI data received by UDP receiver: rtctk::telRepub::UdpReceiver. More...
#include <mudpiProcessor.hpp>
Public Member Functions | |
MudpiProcessor (PubThreadBase<> &pub, uint32_t statisticMsgUpdateRate=5000) | |
MUDPI Processor constructor. More... | |
MudpiProcessor (MudpiProcessor const &rhs) | |
Copy construction. More... | |
~MudpiProcessor () | |
std::error_code | ProcessMudpi (mudpi::mudpiHeader *packet) |
Here the actual processing is done (frame by frame (MUDPI datagram)). More... | |
void | Statistics () |
Dump statistics. More... | |
Processing MUDPI data received by UDP receiver: rtctk::telRepub::UdpReceiver.
|
explicit |
MUDPI Processor constructor.
pub | reference to publisher thread |
statisticMsgUpdateRate | update rate for statistic message after every statisticMsgUpdateRate message/MUDPI frame the statistic is printed |
rtctk::telRepub::MudpiProcessor::MudpiProcessor | ( | MudpiProcessor const & | rhs | ) |
Copy construction.
It needs to be redefined because we use atomics.
rtctk::telRepub::MudpiProcessor::~MudpiProcessor | ( | ) |
std::error_code rtctk::telRepub::MudpiProcessor::ProcessMudpi | ( | mudpi::mudpiHeader * | packet | ) |
Here the actual processing is done (frame by frame (MUDPI datagram)).
packet | MUDPI packet to process. |
... but we report every time (frame) until synchronized again
void rtctk::telRepub::MudpiProcessor::Statistics | ( | ) |
Dump statistics.