Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Public Member Functions | List of all members
transport::protocol::fec::ProducerFEC Class Referenceabstract

#include <fec_base.h>

Inheritance diagram for transport::protocol::fec::ProducerFEC:
Inheritance graph
[legend]
Collaboration diagram for transport::protocol::fec::ProducerFEC:
Collaboration graph
[legend]

Public Member Functions

virtual void onPacketProduced (core::ContentObject &content_object, uint32_t offset)=0
 
- Public Member Functions inherited from transport::protocol::fec::FECBase
virtual std::size_t getFecHeaderSize ()=0
 Get size of FEC header.
 
template<typename Handler >
void setFECCallback (Handler &&callback)
 
template<typename Handler >
void setBufferCallback (Handler &&buffer_callback)
 
virtual void reset ()=0
 

Additional Inherited Members

- Public Types inherited from transport::protocol::fec::FECBase
using PacketsReady = std::function< void(BufferArray &)>
 
using BufferRequested = std::function< buffer(std::size_t size)>
 
- Protected Attributes inherited from transport::protocol::fec::FECBase
PacketsReady fec_callback_ {0}
 
BufferRequested buffer_callback_ {0}
 

Detailed Description

Interface classes to integrate FEC inside any producer transport protocol

Member Function Documentation

◆ onPacketProduced()

virtual void transport::protocol::fec::ProducerFEC::onPacketProduced ( core::ContentObject content_object,
uint32_t  offset 
)
pure virtual

Producers will call this function upon production of a new packet.

Implemented in transport::protocol::fec::RSEncoder, and transport::protocol::fec::RelyEncoder.


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