Yate
RTPProcessor Class Referenceabstract

Base class to ease creation of RTP forwarders. More...

#include <yatertp.h>

Inheritance diagram for RTPProcessor:
GenObject RTPDebug RTPDejitter RTPTransport UDPSession RTPSession UDPTLSession

Public Member Functions

 RTPProcessor (DebugEnabler *dbg=0, const char *traceId=0)
 
virtual ~RTPProcessor ()
 
RTPGroupgroup () const
 
virtual void rtpData (const void *data, int len)
 
virtual void rtcpData (const void *data, int len)
 
virtual void getStats (String &stats) const
 
virtual void incWrongSrc ()
 
unsigned int wrongSrc ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 
- Public Member Functions inherited from RTPDebug
 RTPDebug (DebugEnabler *dbg, const char *traceId)
 
 RTPDebug (RTPSession *session)
 
DebugEnablerdbg () const
 
const StringdbgTraceId () const
 

Protected Member Functions

void group (RTPGroup *newgrp)
 
virtual void timerTick (const Time &when)=0
 
- Protected Member Functions inherited from RTPDebug
void setDebug (DebugEnabler *dbg, const char *traceId)
 

Protected Attributes

unsigned int m_wrongSrc
 
- Protected Attributes inherited from RTPDebug
DebugEnablerm_dbg
 
String m_traceId
 

Friends

class UDPSession
 
class UDPTLSession
 
class RTPGroup
 
class RTPTransport
 
class RTPSender
 
class RTPReceiver
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

Base class to ease creation of RTP forwarders.

A base class that contains just placeholders to process raw RTP and RTCP packets.

Constructor & Destructor Documentation

◆ RTPProcessor()

RTPProcessor ( DebugEnabler * dbg = 0,
const char * traceId = 0 )

Constructor - processor should be later inserted in a RTP group

Parameters
dbgProcessor DebugEnabler
traceIdProcessor trace ID

References RTPDebug::dbg(), and GenObject::traceId().

Referenced by RTPTransport::rtcpData(), RTPTransport::setMonitor(), and RTPTransport::setProcessor().

◆ ~RTPProcessor()

virtual ~RTPProcessor ( )
virtual

Destructor - removes itself from the RTP group

Member Function Documentation

◆ getStats()

virtual void getStats ( String & stats) const
virtual

Retrieve MGCP P: style comma separated session parameters

Parameters
statsString to append parameters to

Reimplemented in RTPSession.

◆ group() [1/2]

RTPGroup * group ( ) const
inline

Get the RTP group to which this processor belongs

Returns
Pointer to the RTP group this processor has joined

◆ group() [2/2]

void group ( RTPGroup * newgrp)
protected

Set a new RTP group for this processor

Parameters
newgrpNew group to join this processor, the old one will be left

◆ incWrongSrc()

virtual void incWrongSrc ( )
inlinevirtual

Increase the counter for number of RTP packets received from a wrong source

Reimplemented in RTPSession.

◆ rtcpData()

virtual void rtcpData ( const void * data,
int len )
virtual

This method is called to send or process a RTCP packet

Parameters
dataPointer to raw RTCP data
lenLength of the data packet

Reimplemented in RTPSession, and RTPTransport.

◆ rtpData()

virtual void rtpData ( const void * data,
int len )
virtual

This method is called to send or process a RTP packet

Parameters
dataPointer to raw RTP data
lenLength of the data packet

Reimplemented in RTPSession, RTPTransport, and UDPTLSession.

◆ timerTick()

virtual void timerTick ( const Time & when)
protectedpure virtual

Method called periodically to keep the data flowing

Parameters
whenTime to use as base in all computing

Implemented in RTPDejitter, RTPSession, RTPTransport, and UDPTLSession.

◆ wrongSrc()

unsigned int wrongSrc ( )
inline

Get the number of RTP packets that were received from a wrong source

Returns
Number of RTP packets received from a wrong source

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