RTP Trace System
1.0
|
RTP Sender. More...
#include <rtpsender.h>
Coral::RTPSender::RTPSender | ( | const card32 | ssrc, |
EncoderInterface * | encoder, | ||
Socket * | senderSocket, | ||
const cardinal | maxPacketSize = 1500 , |
||
BandwidthManager * | bwManager = NULL |
||
) |
Constructor for new RTPSender. The new sender's thread has to be started by calling start()!
ssrc | Sender's SSRC (see RFC 1889). |
encoder | Encoder to get packets to send from. |
senderSocket | Socket to write packets to. |
maxPacketSize | Maximum packet size. |
bwManager | Bandwidth manager. |
Destructor.
card64 Coral::RTPSender::getBytesSent | ( | ) | const [inline] |
Get number of bytes sent.
cardinal Coral::RTPSender::getMaxPacketSize | ( | ) | const [inline] |
Get maximum packet size.
card64 Coral::RTPSender::getPacketsSent | ( | ) | const [inline] |
Get number of packets sent.
AbstractQoSDescription * Coral::RTPSender::getQoSDescription | ( | const card64 | offset | ) | [virtual] |
Implementation of ManagedStreamInterface's getQoSDescription().
Implements Coral::ManagedStreamInterface.
void Coral::RTPSender::init | ( | const card32 | ssrc, |
EncoderInterface * | encoder, | ||
Socket * | senderSocket, | ||
const cardinal | maxPacketSize = 1500 , |
||
BandwidthManager * | bwManager = NULL |
||
) |
Initialize new RTPSender. The new sender's thread has to be started by calling start()!
ssrc | Sender's SSRC (see RFC 1889). |
encoder | Encoder to get packets to send from. |
senderSocket | Socket to write packets to. |
maxPacketSize | Maximum packet size. |
bwManager | Bandwidth manager. |
void Coral::RTPSender::lock | ( | ) | [virtual] |
Implementation of ManagedStreamInterface's lock().
Implements Coral::ManagedStreamInterface.
bool Coral::RTPSender::paused | ( | ) | const [inline] |
Check, if transmission is paused.
void Coral::RTPSender::resetBytesSent | ( | ) | [inline] |
Reset number of bytes sent.
void Coral::RTPSender::resetPacketsSent | ( | ) | [inline] |
Reset number of packets sent.
cardinal Coral::RTPSender::setMaxPacketSize | ( | const cardinal | size | ) | [inline] |
Set maximum packet size.
size | Maximum packet size. |
void Coral::RTPSender::setPause | ( | const bool | on | ) | [inline] |
Set pause on or off.
on | true to set pause on; false to set pause off. |
void Coral::RTPSender::timerEvent | ( | ) | [private, virtual] |
The virtual timerEvent() method, which contains the timed thread's implementation. It has to be implemented by classes, which inherit TimedThread. This method is called regularly with the given interval.
Implements Coral::TimedThread.
bool Coral::RTPSender::transmissionErrorDetected | ( | ) | [inline] |
Check, if transmission error has been detected (e.g. destination rejects packets, no route etc.). Note: The transmission error attribute will be resetted to false by calling this method.
void Coral::RTPSender::unlock | ( | ) | [virtual] |
Implementation of ManagedStreamInterface's unlock().
Implements Coral::ManagedStreamInterface.
void Coral::RTPSender::update | ( | const AbstractQoSDescription * | aqd | ) | [private] |
void Coral::RTPSender::updateQuality | ( | const AbstractQoSDescription * | aqd | ) | [virtual] |
Implementation of ManagedStreamInterface's updateQuality().
Implements Coral::ManagedStreamInterface.
BandwidthManager* Coral::RTPSender::BandwidthMgr [private] |
double Coral::RTPSender::BufferDelay[RTPConstants::RTPMaxQualityLayers] [private] |
card64 Coral::RTPSender::BytesSent [private] |
EncoderInterface* Coral::RTPSender::Encoder [private] |
cardinal Coral::RTPSender::FramesPerSecond [private] |
cardinal Coral::RTPSender::MaxPacketSize [private] |
card64 Coral::RTPSender::PacketsSent [private] |
bool Coral::RTPSender::Pause [private] |
card32 Coral::RTPSender::PayloadBytesSent [private] |
card32 Coral::RTPSender::PayloadPacketsSent [private] |
cardinal Coral::RTPSender::RenewCounter [private] |
Socket* Coral::RTPSender::SenderSocket [private] |
card32 Coral::RTPSender::SSRC [private] |
card64 Coral::RTPSender::TimeStamp [private] |
bool Coral::RTPSender::TransmissionError [private] |