Base class to store common fields.
More...
#include <rely.h>
|
| struct | fec_header |
| | FEC Header, added to each packet to get sequence number upon decoding operations. It may be removed once we know the meaning of the fields in the rely header. More...
|
| |
|
|
uint32_t | k_ |
| |
|
uint32_t | n_ |
| |
|
std::uint32_t | seq_offset_ |
| |
|
std::vector< std::pair< uint32_t, buffer > > | packets_ |
| | Vector of packets to be passed to caller callbacks. For encoder it will contain the repair packets, for decoder the recovered sources.
|
| |
| uint32_t | current_index_ |
| | Current index to be used for local packet count. More...
|
| |
|
PacketsReady | fec_callback_ {0} |
| |
|
BufferRequested | buffer_callback_ {0} |
| |
|
|
static const constexpr size_t | kmax_stream_size = 125U |
| |
|
static const constexpr size_t | kmtu = 1500U |
| |
|
static const constexpr size_t | ktimeout = 100U |
| |
Base class to store common fields.
◆ RelyBase()
| transport::protocol::fec::RelyBase::RelyBase |
( |
uint32_t |
k, |
|
|
uint32_t |
n, |
|
|
uint32_t |
seq_offset = 0 |
|
) |
| |
|
inlineprotected |
Construct a new Rely Base object.
- Parameters
-
| k | The number of source symbol needed to generate n - k repair symbols |
| n | The sum of source packets and repair packets in a block |
| seq_offset | offset to use if production suffixes starts from an index != 0 |
◆ getCurrentTime()
| int64_t transport::protocol::fec::RelyBase::getCurrentTime |
( |
| ) |
|
|
inlineprotected |
Get the current time in milliseconds.
- Returns
- int64_t Current time in milliseconds
◆ current_index_
| uint32_t transport::protocol::fec::RelyBase::current_index_ |
|
protected |
Current index to be used for local packet count.
The documentation for this class was generated from the following file:
- libtransport/src/protocols/fec/rely.h