|
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) |
Protected Member Functions | |
| virtual void | timerTick (const Time &when)=0 |
| void | secLength (u_int32_t len, u_int32_t key=0) |
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 |
| u_int32_t | m_ioPackets |
| u_int32_t | m_ioOctets |
| unsigned int | m_tsLast |
Friends | |
| class | RTPSession |
| class | RTPSecure |
Common send/recv variables holder.
Base class that holds common sender and receiver methods
| RTPBaseIO | ( | RTPSession * | session = 0 | ) | [inline] |
Default constructor.
| virtual ~RTPBaseIO | ( | ) | [virtual] |
Destructor
| int dataPayload | ( | ) | const [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 |
| int eventPayload | ( | ) | const [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 |
| u_int64_t fullSeq | ( | ) | const [inline] |
Get the full current sequence number including rollovers
| u_int32_t ioOctets | ( | ) | const [inline] |
Retrieve the number of payload octets exchanged on current session
| u_int32_t ioPackets | ( | ) | const [inline] |
Retrieve the number of packets exchanged on current session
| void reset | ( | ) | [inline] |
Requesting generation/grabbing of a new SSRC
| u_int32_t rollover | ( | ) | const [inline] |
Get the value of the rollover counter
| void secLength | ( | u_int32_t | len, |
| u_int32_t | key = 0 |
||
| ) | [inline, protected] |
Set the length of the added / expected security info block
| len | Length of security information portion |
| key | Length of master key identifier |
Get the security provider of this sender or receiver
Set the security provider of this sender or receiver
| secure | Pointer to the new RTPSecure or NULL |
| u_int16_t seq | ( | ) | const [inline] |
Get the current sequence number
| RTPSession* session | ( | ) | const [inline] |
Get the session this object belongs to
| int silencePayload | ( | ) | const [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 |
| unsigned int ssrc | ( | ) | const [inline] |
Get the value of the current SSRC, zero if not initialized yet
| void ssrc | ( | unsigned int | src | ) | [inline] |
Force a new known SSRC for all further packets
| unsigned int ssrcInit | ( | ) |
Return SSRC value, initialize to a new, random value if needed
Method called periodically to keep the data flowing
| when | Time to use as base in all computing |
Implemented in RTPSender, and RTPReceiver.
| unsigned int tsLast | ( | ) | const [inline] |
Get the timestamp of the last packet as transmitted over the wire
1.7.6.1