#include <yatertp.h>
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 | |
RTPSession * | m_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 |
Base class that holds common sender and receiver methods
RTPBaseIO | ( | RTPSession * | session = 0 |
) | [inline] |
Default constructor.
virtual ~RTPBaseIO | ( | ) | [inline, virtual] |
Do-nothing destructor
bool dataPayload | ( | int | type | ) |
Set the payload type for data packets
type | Payload type, -1 to disable |
int dataPayload | ( | ) | const [inline] |
Get the payload type for data packets
bool eventPayload | ( | int | type | ) |
Set the payload type for event packets
type | Payload type, -1 to disable |
int eventPayload | ( | ) | const [inline] |
Get the payload type for event packets
void reset | ( | ) | [inline] |
Requesting generation/grabbing of a new SSRC
bool silencePayload | ( | int | type | ) |
Set the payload type for Silence event packets. Thanks, Silence, for a new and incompatible way of sending events.
type | Payload type, -1 to disable |
int silencePayload | ( | ) | const [inline] |
Get the payload type for Silence event packets
void ssrc | ( | unsigned int | src | ) | [inline] |
Force a new known SSRC for all further packets
unsigned int ssrc | ( | ) | const [inline] |
Get the value of the current SSRC, zero if not initialized yet
unsigned int ssrcInit | ( | ) |
Return SSRC value, initialize to a new, random value if needed
virtual void timerTick | ( | const Time & | when | ) | [protected, pure virtual] |
Method called periodically to keep the data flowing
when | Time to use as base in all computing |
Implemented in RTPReceiver, and RTPSender.