class RTCPSender

RTCP Sender. More...

Full nameCoral::RTCPSender
Definition#include <rtcpsender.h>
InheritsCoral::TimedThread
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

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:
ssrcSSRC.
senderSocketSocket to write data to.
receiverRTPReceiver for reports to send.
bandwidthRTCP 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:
ssrcSSRC.
senderSocketSocket to write data to.
receiverRTPReceiver for reports to send.
bandwidthRTCP Bandwidth (see RFC 1889).

integer sendApp (const char* name, const void* data, const cardinal dataLength)

Send RTCP APP message.

Parameters:
nameRTCP APP name.
dataRTCP APP data.
dataLengthRTCP 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:
typeSDES item type.
dataSDES item data.
lengthSDES 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:
typeSDES item type to be removed.

See also: addSDESItem, sendSDES