![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTCP session. Processes incoming RTCP packets and generates outgoing RTCP packets. More...
#include <session.h>
Public Member Functions | |
Session (IReceiverHooks *recv_hooks, ISenderHooks *send_hooks, packet::IWriter *packet_writer, packet::IComposer &packet_composer, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &buffer_factory) | |
Initialize. | |
bool | valid () const |
Check if initialization succeeded. | |
void | process_packet (const packet::PacketPtr &packet) |
Parse and process incoming packet. Invokes session hooks methods during processing. | |
core::nanoseconds_t | generation_deadline () |
When we should generate packets next time. Returns absolute time. | |
void | generate_packets () |
Generate and send packet(s). Should be called accroding to generation_deadline(). | |
RTCP session. Processes incoming RTCP packets and generates outgoing RTCP packets.
roc::rtcp::Session::Session | ( | IReceiverHooks * | recv_hooks, |
ISenderHooks * | send_hooks, | ||
packet::IWriter * | packet_writer, | ||
packet::IComposer & | packet_composer, | ||
packet::PacketFactory & | packet_factory, | ||
core::BufferFactory< uint8_t > & | buffer_factory | ||
) |
Initialize.
void roc::rtcp::Session::generate_packets | ( | ) |
Generate and send packet(s). Should be called accroding to generation_deadline().
core::nanoseconds_t roc::rtcp::Session::generation_deadline | ( | ) |
When we should generate packets next time. Returns absolute time.
void roc::rtcp::Session::process_packet | ( | const packet::PacketPtr & | packet | ) |
Parse and process incoming packet. Invokes session hooks methods during processing.
bool roc::rtcp::Session::valid | ( | ) | const |
Check if initialization succeeded.