Packet.
More...
#include <packet.h>
|
class | core::RefCnt< Packet > |
|
Packet.
Definition at line 35 of file packet.h.
◆ anonymous enum
◆ Packet()
◆ add_flags()
void roc::packet::Packet::add_flags |
( |
unsigned |
flags | ) |
|
◆ begin()
Get the timestamp of the first sample in packet.
◆ compare()
int roc::packet::Packet::compare |
( |
const Packet & |
other | ) |
const |
Determine packet order.
- Returns
- -1 if this packet precedes
other
packet
- 0 if this packet has the same position as
other
packet
- +1 if this packet succeeds
other
packet
◆ container_of()
static Packet* roc::packet::Packet::container_of |
( |
UDP * |
udp | ) |
|
|
inlinestatic |
Get pointer to packet from a pointer to its UDP part.
Definition at line 112 of file packet.h.
◆ data()
const core::Slice<uint8_t>& roc::packet::Packet::data |
( |
| ) |
const |
◆ end()
Get the timestamp of the last sample in packet plus one.
◆ fec() [1/2]
FEC* roc::packet::Packet::fec |
( |
| ) |
|
◆ fec() [2/2]
const FEC* roc::packet::Packet::fec |
( |
| ) |
const |
◆ flags()
unsigned roc::packet::Packet::flags |
( |
| ) |
const |
◆ print()
void roc::packet::Packet::print |
( |
int |
flags | ) |
const |
|
inline |
Print packet to stderr.
Definition at line 107 of file packet.h.
◆ rtp() [1/2]
RTP* roc::packet::Packet::rtp |
( |
| ) |
|
◆ rtp() [2/2]
const RTP* roc::packet::Packet::rtp |
( |
| ) |
const |
◆ set_data()
void roc::packet::Packet::set_data |
( |
const core::Slice< uint8_t > & |
data | ) |
|
◆ source()
source_t roc::packet::Packet::source |
( |
| ) |
const |
Return packet stream identifier.
◆ udp() [1/2]
UDP* roc::packet::Packet::udp |
( |
| ) |
|
◆ udp() [2/2]
const UDP* roc::packet::Packet::udp |
( |
| ) |
const |
The documentation for this class was generated from the following file: