class RTPReceiver

RTP Receiver. More...

Full nameCoral::RTPReceiver
Definition#include <rtpreceiver.h>
InheritsCoral::Thread
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members

Protected Members


Detailed Description

This class implements an RTP receiver based on Thread.

RTPReceiver ()

Default constructor. You have to initialize RTPReceiver by calling init(...) later!

See also: init

RTPReceiver (DecoderInterface* decoder, Socket* receiverSocket)

Constructor for new RTPSender. The new sender's thread has to be started by calling start()!

Parameters:
decoderDecoder to handle packets received.
receiverSocketSocket to receive data from.

See also: Thread#start

~RTPReceiver ()

Destructor.

void init (DecoderInterface* decoder, Socket* receiverSocket)

Initialize RTPSender. The new receiver's thread has to be started by calling start()!

Parameters:
decoderDecoder to handle packets received.
receiverSocketSocket to receive data from.

See also: Thread#start

inline void getTransportInfo (TransportInfo& transportInfo, const bool calculateLevels)
[const]

Get TransportInfo for current setting. The access is synchronized with the receiver thread.

Parameters:
calculateLevelstrue to calculate all level constants; false otherwise.
transportInfoPointer to TransportInfo.

inline card64 getPosition ()
[const]

Get position of the encoder. The access is synchronized with the receiver thread.

Returns: Position in nanoseconds.

inline card64 getMaxPosition ()
[const]

Get maximum position of the encoder. The access is synchronized with the receiver thread.

Returns: Maximum position in nanoseconds.

inline card64 getBytesReceived (const cardinal layer)
[const]

Get number of bytes received.

Parameters:
layerLayer number or (cardinal)-1 to get sum of all layers.

Returns: Bytes received.

inline card64 getPacketsReceived (const cardinal layer)
[const]

Get number of packets received.

Parameters:
layerLayer number or (cardinal)-1 to get sum of all layers.

Returns: Packets received.

inline void resetBytesReceived (const cardinal layer)

Reset number of bytes received.

Parameters:
layerLayer number.

inline void resetPacketsReceived (const cardinal layer)

Reset number of packets received.

Parameters:
layerLayer number.

inline cardinal getLayers ()
[const]

Get number of layers of last transmission.

Returns: Number of layers.

inline InternetFlow getInternetFlow (const cardinal layer = 0)
[const]

Get InternetFlow of last transmission in a given layer.

Parameters:
layerLayer number.

Returns: InternetFlow.

inline SourceStateInfo getSSI (const cardinal layer = 0)
[const]

Get SourceStateInfo for given layer.

friend class RTCPSender

RTCPSender is a friend class to enable efficient update of SSI data.