RTPBaseIO Class Reference
Common send/recv variables holder.
More...
#include <yatertp.h>
List of all members.
Detailed Description
Common send/recv variables holder.
Base class that holds common sender and receiver methods
Constructor & Destructor Documentation
Member Function Documentation
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 dataPayload |
( |
|
) |
const [inline] |
Get the payload type for data 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 eventPayload |
( |
|
) |
const [inline] |
Get the payload type for event packets
- Returns:
- Payload type, -1 if not set
u_int64_t fullSeq |
( |
|
) |
const [inline] |
Get the full current sequence number including rollovers
- Returns:
- Full 48 bit current sequence number
u_int32_t ioOctets |
( |
|
) |
const [inline] |
Retrieve the number of payload octets exchanged on current session
- Returns:
- Number of octets exchanged except headers and padding
u_int32_t ioPackets |
( |
|
) |
const [inline] |
Retrieve the number of packets exchanged on current session
- Returns:
- Number of packets exchanged
Requesting generation/grabbing of a new SSRC
u_int32_t rollover |
( |
|
) |
const [inline] |
Get the value of the rollover counter
- Returns:
- How many times the seqeunce has rolled over since SSRC changed
void secLength |
( |
u_int32_t |
len, |
|
|
u_int32_t |
key = 0 | |
|
) |
| | [inline, protected] |
Set the length of the added / expected security info block
- Parameters:
-
| len | Length of security information portion |
| key | Length of master key identifier |
Set the security provider of this sender or receiver
- Parameters:
-
Get the security provider of this sender or receiver
- Returns:
- A pointer to the RTPSecure or NULL
u_int16_t seq |
( |
|
) |
const [inline] |
Get the current sequence number
- Returns:
- Sequence number
Get the session this object belongs to
- Returns:
- Pointer to RTP session or NULL
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
int silencePayload |
( |
|
) |
const [inline] |
Get the payload type for Silence event packets
- Returns:
- Payload type, -1 if not set
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
- Returns:
- Value of SSRC, zero if not initialized
unsigned int ssrcInit |
( |
|
) |
|
Return SSRC value, initialize to a new, random value if needed
- Returns:
- Current value of SSRC
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: