RTPBaseIO Class Reference

Common send/recv variables holder. More...

#include <yatertp.h>

Inheritance diagram for RTPBaseIO:

RTPReceiver RTPSender

List of all members.

Public Member Functions

 RTPBaseIO (RTPSession *session=0)
virtual ~RTPBaseIO ()
int dataPayload () const
bool dataPayload (int type)
int eventPayload () const
bool eventPayload (int type)
int silencePayload () const
bool silencePayload (int type)
unsigned int ssrcInit ()
void reset ()
unsigned int ssrc () const
void ssrc (unsigned int src)

Protected Member Functions

virtual void timerTick (const Time &when)=0

Protected Attributes

RTPSessionm_session
bool m_ssrcInit
u_int32_t m_ssrc
u_int32_t m_ts
u_int16_t m_seq
u_int32_t m_evTs
int m_evNum
int m_evVol

Friends

class RTPSession


Detailed Description

Common send/recv variables holder.

Base class that holds common sender and receiver methods


Constructor & Destructor Documentation

RTPBaseIO ( RTPSession session = 0  )  [inline]

Default constructor.

virtual ~RTPBaseIO (  )  [inline, virtual]

Do-nothing destructor


Member Function Documentation

int dataPayload (  )  const [inline]

Get the payload type for data packets

Returns:
Payload type, -1 if not set

bool dataPayload ( int  type  ) 

Set the payload type for data packets

Parameters:
type Payload type, -1 to disable
Returns:
True if changed, false if invalid payload type

int eventPayload (  )  const [inline]

Get the payload type for event packets

Returns:
Payload type, -1 if not set

bool eventPayload ( int  type  ) 

Set the payload type for event packets

Parameters:
type Payload type, -1 to disable
Returns:
True if changed, false if invalid payload type

int silencePayload (  )  const [inline]

Get the payload type for Silence event packets

Returns:
Payload type, -1 if not set

bool silencePayload ( int  type  ) 

Set the payload type for Silence event packets. Thanks, Silence, for a new and incompatible way of sending events.

Parameters:
type Payload type, -1 to disable
Returns:
True if changed, false if invalid payload type

unsigned int ssrcInit (  ) 

Return SSRC value, initialize to a new, random value if needed

Returns:
Current value of SSRC

void reset (  )  [inline]

Requesting generation/grabbing of a new SSRC

unsigned int ssrc (  )  const [inline]

Get the value of the current SSRC, zero if not initialized yet

Returns:
Value of SSRC, zero if not initialized

void ssrc ( unsigned int  src  )  [inline]

Force a new known SSRC for all further packets

virtual void timerTick ( const Time when  )  [protected, pure virtual]

Method called periodically to keep the data flowing

Parameters:
when Time to use as base in all computing

Implemented in RTPReceiver, and RTPSender.


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

Generated on Mon Aug 11 16:17:54 2008 for Yate by  doxygen 1.5.6