RTP Trace System
1.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 () const |
card64 | getMaxPosition () const |
card64 | getBytesReceived (const cardinal layer) const |
card64 | getPacketsReceived (const cardinal layer) const |
void | resetBytesReceived (const cardinal layer) |
void | resetPacketsReceived (const cardinal layer) |
cardinal | getLayers () const |
InternetFlow | getInternetFlow (const cardinal layer=0) const |
SourceStateInfo | getSSI (const cardinal layer=0) const |
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!
Coral::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 Coral::RTPReceiver::getBytesReceived | ( | const cardinal | layer | ) | const [inline] |
Get number of bytes received.
layer | Layer number or (cardinal)-1 to get sum of all layers. |
InternetFlow Coral::RTPReceiver::getInternetFlow | ( | const cardinal | layer = 0 | ) | const [inline] |
Get InternetFlow of last transmission in a given layer.
layer | Layer number. |
cardinal Coral::RTPReceiver::getLayers | ( | ) | const [inline] |
Get number of layers of last transmission.
card64 Coral::RTPReceiver::getMaxPosition | ( | ) | const [inline] |
Get maximum position of the encoder. The access is synchronized with the receiver thread.
card64 Coral::RTPReceiver::getPacketsReceived | ( | const cardinal | layer | ) | const [inline] |
Get number of packets received.
layer | Layer number or (cardinal)-1 to get sum of all layers. |
card64 Coral::RTPReceiver::getPosition | ( | ) | const [inline] |
Get position of the encoder. The access is synchronized with the receiver thread.
SourceStateInfo Coral::RTPReceiver::getSSI | ( | const cardinal | layer = 0 | ) | const [inline] |
Get SourceStateInfo for given layer.
void Coral::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 Coral::RTPReceiver::resetBytesReceived | ( | const cardinal | layer | ) | [inline] |
Reset number of bytes received.
layer | Layer number. |
void Coral::RTPReceiver::resetPacketsReceived | ( | const cardinal | layer | ) | [inline] |
Reset number of packets received.
layer | Layer number. |
void Coral::RTPReceiver::run | ( | ) | [private, virtual] |
The virtual run() method, which contains the thread's implementation. It has to be implemented by classes, which inherit Thread.
Implements Coral::Thread.
friend class RTCPSender [friend] |
RTCPSender is a friend class to enable efficient update of SSI data.
DecoderInterface* Coral::RTPReceiver::Decoder [private] |
cardinal Coral::RTPReceiver::Layers [protected] |
Socket* Coral::RTPReceiver::ReceiverSocket [private] |