RTP Audio System
2.0.0
|
RTP Receiver. More...
#include <rtpreceiver.h>
Public Member Functions | |
RTPReceiver () | |
RTPReceiver (DecoderInterface *decoder, Socket *receiverSocket) | |
~RTPReceiver () | |
void | init (DecoderInterface *decoder, Socket *receiverSocket) |
card64 | getPosition () |
card64 | getMaxPosition () |
card64 | getBytesReceived (const cardinal layer) |
card64 | getPacketsReceived (const cardinal layer) |
void | resetBytesReceived (const cardinal layer) |
void | resetPacketsReceived (const cardinal layer) |
cardinal | getLayers () |
InternetFlow | getInternetFlow (const cardinal layer=0) |
SourceStateInfo | getSSI (const cardinal layer=0) |
Protected Attributes | |
cardinal | Layers |
InternetFlow | Flow [RTPConstants::RTPMaxQualityLayers] |
SourceStateInfo | SSI [RTPConstants::RTPMaxQualityLayers] |
card64 | BytesReceived [RTPConstants::RTPMaxQualityLayers] |
card64 | PacketsReceived [RTPConstants::RTPMaxQualityLayers] |
Private Member Functions | |
void | run () |
Private Attributes | |
DecoderInterface * | Decoder |
Socket * | ReceiverSocket |
Friends | |
class | RTCPSender |
Default constructor. You have to initialize RTPReceiver by calling init(...) later!
RTPReceiver::RTPReceiver | ( | DecoderInterface * | decoder, |
Socket * | receiverSocket | ||
) |
Constructor for new RTPSender. The new sender's thread has to be started by calling start()!
decoder | Decoder to handle packets received. |
receiverSocket | Socket to receive data from. |
Destructor.
card64 RTPReceiver::getBytesReceived | ( | const cardinal | layer | ) | [inline] |
Get number of bytes received.
layer | Layer number or (cardinal)-1 to get sum of all layers. |
InternetFlow RTPReceiver::getInternetFlow | ( | const cardinal | layer = 0 | ) | [inline] |
Get InternetFlow of last transmission in a given layer.
layer | Layer number. |
cardinal RTPReceiver::getLayers | ( | ) | [inline] |
Get number of layers of last transmission.
card64 RTPReceiver::getMaxPosition | ( | ) | [inline] |
Get maximum position of the encoder. The access is synchronized with the receiver thread.
card64 RTPReceiver::getPacketsReceived | ( | const cardinal | layer | ) | [inline] |
Get number of packets received.
layer | Layer number or (cardinal)-1 to get sum of all layers. |
card64 RTPReceiver::getPosition | ( | ) | [inline] |
Get position of the encoder. The access is synchronized with the receiver thread.
SourceStateInfo RTPReceiver::getSSI | ( | const cardinal | layer = 0 | ) | [inline] |
Get SourceStateInfo for given layer.
void RTPReceiver::init | ( | DecoderInterface * | decoder, |
Socket * | receiverSocket | ||
) |
Initialize RTPSender. The new receiver's thread has to be started by calling start()!
decoder | Decoder to handle packets received. |
receiverSocket | Socket to receive data from. |
void RTPReceiver::resetBytesReceived | ( | const cardinal | layer | ) | [inline] |
Reset number of bytes received.
layer | Layer number. |
void RTPReceiver::resetPacketsReceived | ( | const cardinal | layer | ) | [inline] |
Reset number of packets received.
layer | Layer number. |
void RTPReceiver::run | ( | ) | [private, virtual] |
friend class RTCPSender [friend] |
RTCPSender is a friend class to enable efficient update of SSI data.
DecoderInterface* RTPReceiver::Decoder [private] |
cardinal RTPReceiver::Layers [protected] |
Socket* RTPReceiver::ReceiverSocket [private] |