|
|
This class implements an RTCP sender based on TimedThread.
RTCPSender () |
Default constructor. You have to initialize RTPSender by calling init(...) later!
See also: init
RTCPSender (const card32 ssrc, Socket* senderSocket, RTPReceiver* receiver, const card64 bandwidth) |
Constructor for new RTCPSender. The new sender's thread has to be started by calling start()!
Parameters:
ssrc | SSRC. |
senderSocket | Socket to write data to. |
receiver | RTPReceiver for reports to send. |
bandwidth | RTCP Bandwidth (see RFC 1889). |
~RTCPSender () |
Destructor.
void init (const card32 ssrc, Socket* senderSocket, RTPReceiver* receiver, const card64 bandwidth) |
Initialize new RTCPSender. The new sender's thread has to be started by calling start()!
Parameters:
ssrc | SSRC. |
senderSocket | Socket to write data to. |
receiver | RTPReceiver for reports to send. |
bandwidth | RTCP Bandwidth (see RFC 1889). |
integer sendApp (const char* name, const void* data, const cardinal dataLength) |
Send RTCP APP message.
Parameters:
name | RTCP APP name. |
data | RTCP APP data. |
dataLength | RTCP APP data length. |
Returns: Bytes sent.
integer sendBye () |
Send RTCP BYE message.
Returns: Bytes sent.
integer sendReport () |
Send RTCP receiver report from the SourceStateInfo given in the constructor.
Returns: Bytes sent.
integer sendSDES () |
Send RTCP SDES message from the list given by addSDESItem().
Returns: Bytes sent.
See also: addSDESItem
bool addSDESItem (const card8 type, const void* data, const card8 length = 0) |
Add SDES item to SDES item list. If a SDES item with the same type already exists in the list, the new item replaces the old item.
Parameters:
type | SDES item type. |
data | SDES item data. |
length | SDES item data length. |
Returns: true, if item has been added; false, if not.
See also: sendSDES
void removeSDESItem (const card8 type) |
Remove SDES item from SDES item list.
Parameters:
type | SDES item type to be removed. |
See also: addSDESItem, sendSDES