Packet.
More...
#include <packet.h>
|
PacketFactory & | factory () const |
| Get factory.
|
|
| FactoryAllocation () |
| Initialize in invalid state. Such instance wont be usable.
|
|
| FactoryAllocation (PacketFactory &factory) |
| Initialize with given factory. Such instance will use factory to destroy objects.
|
|
void | destroy (T &object) |
| Destroy object and deallocate its memory.
|
|
Packet.
Definition at line 36 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 125 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 120 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()
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: