Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::rtcp::Session Class Reference

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().
 

Detailed Description

RTCP session. Processes incoming RTCP packets and generates outgoing RTCP packets.

Definition at line 32 of file session.h.

Constructor & Destructor Documentation

◆ Session()

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.

Member Function Documentation

◆ generate_packets()

void roc::rtcp::Session::generate_packets ( )

Generate and send packet(s). Should be called accroding to generation_deadline().

◆ generation_deadline()

core::nanoseconds_t roc::rtcp::Session::generation_deadline ( )

When we should generate packets next time. Returns absolute time.

◆ process_packet()

void roc::rtcp::Session::process_packet ( const packet::PacketPtr packet)

Parse and process incoming packet. Invokes session hooks methods during processing.

◆ valid()

bool roc::rtcp::Session::valid ( ) const

Check if initialization succeeded.


The documentation for this class was generated from the following file: