RTC Toolkit  1.0.0
Public Member Functions | List of all members
PacketCombiner Class Reference

This class combines the packets of a sample. More...

#include <packetCombiner.hpp>

Public Member Functions

 PacketCombiner (std::function< void(const CombinedFrames &)> callback)
 This creates a new Packet combiner. More...
 
void AddSample (const PacketData &data)
 This function is called to add a new packet to be combined with the others. More...
 

Detailed Description

This class combines the packets of a sample.

Constructor & Destructor Documentation

◆ PacketCombiner()

PacketCombiner::PacketCombiner ( std::function< void(const CombinedFrames &)>  callback)
explicit

This creates a new Packet combiner.

The function that is provided is called whenever a sample is complete

Member Function Documentation

◆ AddSample()

void PacketCombiner::AddSample ( const PacketData data)

This function is called to add a new packet to be combined with the others.

Parameters
datathe packet to be included when combining the packets

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