|
Yate
|
Common send/recv variables holder. More...
#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) |
| u_int16_t | seq () const |
| u_int32_t | rollover () const |
| u_int64_t | fullSeq () const |
| u_int32_t | ioPackets () const |
| u_int32_t | ioOctets () const |
| unsigned int | tsLast () const |
| RTPSession * | session () const |
| RTPSecure * | security () const |
| void | security (RTPSecure *secure) |
| void | initDebugData (bool recv, const NamedList ¶ms) |
Public Member Functions inherited from RTPDebug | |
| RTPDebug (DebugEnabler *dbg, const char *traceId) | |
| RTPDebug (RTPSession *session) | |
| DebugEnabler * | dbg () const |
| const String & | dbgTraceId () const |
Protected Member Functions | |
| virtual void | timerTick (const Time &when)=0 |
| void | secLength (u_int32_t len, u_int32_t key=0) |
Protected Member Functions inherited from RTPDebug | |
| void | setDebug (DebugEnabler *dbg, const char *traceId) |
Protected Attributes | |
| RTPSession * | m_session |
| RTPSecure * | m_secure |
| bool | m_ssrcInit |
| u_int32_t | m_ssrc |
| u_int32_t | m_ts |
| u_int16_t | m_seq |
| u_int32_t | m_rollover |
| u_int16_t | m_secLen |
| u_int16_t | m_mkiLen |
| u_int32_t | m_evTs |
| int | m_evNum |
| int | m_evVol |
| unsigned int | m_evSeq |
| u_int32_t | m_ioPackets |
| u_int32_t | m_ioOctets |
| unsigned int | m_tsLast |
| int | m_debugDataLevel |
| bool | m_debugData |
| bool | m_debugEvent |
Protected Attributes inherited from RTPDebug | |
| DebugEnabler * | m_dbg |
| String | m_traceId |
Friends | |
| class | RTPSession |
| class | RTPSecure |
Common send/recv variables holder.
Base class that holds common sender and receiver methods
|
inline |
Default constructor.
References RTPDebug::RTPDebug(), and session().
Referenced by RTPReceiver::RTPReceiver().
|
virtual |
Destructor
|
inline |
Get the payload type for data packets
| bool dataPayload | ( | int | type | ) |
Set the payload type for data packets
| type | Payload type, -1 to disable |
|
inline |
Get the payload type for event packets
| bool eventPayload | ( | int | type | ) |
Set the payload type for event packets
| type | Payload type, -1 to disable |
|
inline |
Get the full current sequence number including rollovers
| void initDebugData | ( | bool | recv, |
| const NamedList & | params ) |
Initialize data debug
| recv | True if receiving, false if sending |
| params | Parameters list |
|
inline |
Retrieve the number of payload octets exchanged on current session
|
inline |
Retrieve the number of packets exchanged on current session
|
inline |
Requesting generation/grabbing of a new SSRC
|
inline |
Get the value of the rollover counter
|
inlineprotected |
Set the length of the added / expected security info block
| len | Length of security information portion |
| key | Length of master key identifier |
|
inline |
Get the security provider of this sender or receiver
| void security | ( | RTPSecure * | secure | ) |
Set the security provider of this sender or receiver
| secure | Pointer to the new RTPSecure or NULL |
|
inline |
Get the current sequence number
Referenced by RTPReceiver::rtpCheckIntegrity(), and RTPReceiver::rtpDecipher().
|
inline |
Get the session this object belongs to
Referenced by RTPBaseIO(), RTPReceiver::RTPReceiver(), and RTPSender::RTPSender().
|
inline |
Get the payload type for Silence event packets
| 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 |
|
inline |
Get the value of the current SSRC, zero if not initialized yet
Referenced by RTPReceiver::rtpCheckIntegrity(), and RTPReceiver::rtpDecipher().
|
inline |
Force a new known SSRC for all further packets
| unsigned int ssrcInit | ( | ) |
Return SSRC value, initialize to a new, random value if needed
|
protectedpure virtual |
Method called periodically to keep the data flowing
| when | Time to use as base in all computing |
Implemented in RTPReceiver, and RTPSender.
|
inline |
Get the timestamp of the last packet as transmitted over the wire