Packet.
More...
#include <packet.h>
Packet.
Definition at line 36 of file packet.h.
◆ anonymous enum
Packet flags.
Enumerator |
---|
FlagUDP | Packet contains UDP header.
|
FlagRTP | Packet contains RTP header.
|
FlagFEC | Packet contains FEC header.
|
FlagRTCP | Packet contains RTCP compound packet.
|
FlagAudio | Packet contains audio samples.
|
FlagRepair | Packet contains repair FEC symbols.
|
FlagControl | Packet contains control message.
|
FlagPrepared | Packet was prepared for composing.
|
FlagComposed | Packet was composed.
|
FlagRestored | Packet was restored using FEC decoder.
|
Definition at line 44 of file packet.h.
◆ Packet()
roc::packet::Packet::Packet |
( |
core::IPool & |
packet_pool | ) |
|
|
explicit |
◆ 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 127 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 |
◆ has_flags()
bool roc::packet::Packet::has_flags |
( |
unsigned |
flags | ) |
const |
◆ print()
void roc::packet::Packet::print |
( |
int |
flags | ) |
const |
|
inline |
Print packet to stderr.
Definition at line 122 of file packet.h.
◆ rtcp() [1/2]
RTCP* roc::packet::Packet::rtcp |
( |
| ) |
|
◆ rtcp() [2/2]
const RTCP* roc::packet::Packet::rtcp |
( |
| ) |
const |
◆ 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()
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: