RTP Trace System
1.0
|
Trace Client. More...
#include <traceclient.h>
Trace Client.
This class is a trace client.
Coral::TraceClient::TraceClient | ( | const char * | receiverName | ) |
Constructor for a new trace client.
receiverName | String with the receiver name or NULL for default. |
Destructor.
void Coral::TraceClient::change | ( | const char * | mediaName | ) |
Change media of an established connection.
mediaName | New media name (e.g. ../TraceFiles/Test2.list) |
Range<card64> Coral::TraceClient::getBandwidth | ( | ) | const [inline] |
Get bandwidth range of last transmission.
card64 Coral::TraceClient::getBytesReceived | ( | const cardinal | layer = 0 | ) | const [inline] |
Get number of bytes received.
layer | Layer number or (cardinal)-1 for sum of all layers. |
const char* Coral::TraceClient::getEncoding | ( | ) | const [inline] |
Get encoding name.
const char * Coral::TraceClient::getEncodingName | ( | const cardinal | index | ) |
Get encoding name for a given index of the client's decoder repository.
index | Repository index. |
card8 Coral::TraceClient::getErrorCode | ( | ) | const [inline] |
Get error code.
card32 Coral::TraceClient::getFlags | ( | ) | const [inline] |
Get flags of last transmission.
card32 Coral::TraceClient::getFlowLabel | ( | const cardinal | layer = 0 | ) | const [inline] |
Get flow label of last received packet in given layer.
layer | Layer number. |
double Coral::TraceClient::getFractionLost | ( | const cardinal | layer = 0 | ) | const |
Get fraction of packets lost for given layer.
layer | Layer number. |
double Coral::TraceClient::getFrameRate | ( | ) | const [inline] |
Get frame rate of last transmission.
InternetFlow Coral::TraceClient::getInternetFlow | ( | const cardinal | layer = 0 | ) | const [inline] |
Get InternetFlow of last received packet in given layer.
layer | Layer number. |
card8 Coral::TraceClient::getIPVersion | ( | ) | const |
Get IP version.
double Coral::TraceClient::getJitter | ( | const cardinal | layer = 0 | ) | const |
cardinal Coral::TraceClient::getLayers | ( | ) | const [inline] |
Get number of layers of last transmission.
card64 Coral::TraceClient::getMaxPosition | ( | ) | const [inline] |
Get maximum media position.
double Coral::TraceClient::getMaxTransferDelay | ( | ) | const [inline] |
Get maximum transfer delay.
card64 Coral::TraceClient::getMaxWantedBandwidth | ( | ) | const [inline] |
Get maximum wanted bandwidth.
MediaInfo Coral::TraceClient::getMediaInfo | ( | ) | const |
card64 Coral::TraceClient::getMinWantedBandwidth | ( | ) | const [inline] |
Get minimum wanted bandwidth.
String Coral::TraceClient::getOurAddressString | ( | InternetAddress::PrintFormat | format = InternetAddress::PF_Address | ) | const |
Get client address string.
format | Print format. |
card32 Coral::TraceClient::getOurSSRC | ( | ) | const [inline] |
Get client SSRC.
card64 Coral::TraceClient::getPacketsLost | ( | const cardinal | layer = 0 | ) | const |
Get number of packets lost for given layer.
layer | Layer number. |
card64 Coral::TraceClient::getPacketsReceived | ( | const cardinal | layer = 0 | ) | const [inline] |
Get number of packets received in given layer.
layer | Layer number or (cardinal)-1 for sum of all layers. |
Get current media position. This will automatically the RestartPosition value in the next TraceClientAppPacket. The server will restart from the current position, if the server is restarted.
String Coral::TraceClient::getServerAddressString | ( | InternetAddress::PrintFormat | format = InternetAddress::PF_Address | ) | const |
Get server address string.
format | Print format. |
card32 Coral::TraceClient::getServerSSRC | ( | const cardinal | layer = 0 | ) | const |
Get server SSRC for given layer.
layer | Layer number. |
int8 Coral::TraceClient::getSessionPriority | ( | ) | const [inline] |
Get session priority.
int8 Coral::TraceClient::getStreamPriority | ( | ) | const [inline] |
Get stream priority.
card8 Coral::TraceClient::getTrafficClass | ( | const cardinal | layer = 0 | ) | const [inline] |
Get traffic class of last received packet in given layer.
layer | Layer number. |
double Coral::TraceClient::getUtilization | ( | ) | const [inline] |
Get utilization of last transmission.
double Coral::TraceClient::getWantedUtilization | ( | ) | const [inline] |
Get wanted utilization.
bool Coral::TraceClient::play | ( | const char * | server, |
const char * | mediaName, | ||
const card32 | sessionDescriptor = 0 |
||
) |
Start playing given media from given server.
server | Server address (e.g. gaffel:7500). |
mediaName | Media name (e.g. ../TraceFiles/Test1.list) |
sessionDescriptor | Session descriptor. |
bool Coral::TraceClient::playing | ( | ) | const [inline] |
Check, if trace client is playing.
void Coral::TraceClient::sendCommand | ( | const bool | updateRestartPosition = true | ) | [private] |
void Coral::TraceClient::setEncoding | ( | const cardinal | index | ) |
Set encoding by index in client's decoder repository.
index | Index in decoder repository. |
void Coral::TraceClient::setFlags | ( | const card32 | priority | ) | [inline] |
Set flags.
flags | Flags. |
void Coral::TraceClient::setMaxTransferDelay | ( | const double | delay | ) | [inline] |
Set maximum transfer delay.
delay | Maximum transfer delay in microseconds. |
void Coral::TraceClient::setMaxWantedBandwidth | ( | const card64 | bandwidth | ) | [inline] |
Set maximum wanted bandwidth.
bandwidth | Maximum wanted bandwidth. |
void Coral::TraceClient::setMinWantedBandwidth | ( | const card64 | bandwidth | ) | [inline] |
Set minimum wanted bandwidth.
bandwidth | Minimum wanted bandwidth. |
void Coral::TraceClient::setPause | ( | const bool | on | ) |
Set pause.
on | true for pause on; false for pause off. |
void Coral::TraceClient::setPosition | ( | const card64 | position | ) | [inline] |
Set media position.
position | New media position in nanoseconds. |
void Coral::TraceClient::setSessionPriority | ( | const int8 | priority | ) | [inline] |
Set session priority.
priority | Session priority. |
void Coral::TraceClient::setStreamPriority | ( | const int8 | priority | ) | [inline] |
Set stream priority.
priority | Stream priority. |
void Coral::TraceClient::setWantedUtilization | ( | const double | utilization | ) | [inline] |
Set wanted utilization.
utilization | Wanted utilization. |
void Coral::TraceClient::stop | ( | ) |
Stop playing.
card64 Coral::TraceClient::ChangeTimeStamp [private] |
multimap<const cardinal,TraceDecoderInterface*> Coral::TraceClient::DecoderSet [private] |
InternetFlow Coral::TraceClient::Flow [private] |
bool Coral::TraceClient::IsPlaying [private] |
card64 Coral::TraceClient::OldPosition [private] |
card32 Coral::TraceClient::OurSSRC [private] |
RTPReceiver* Coral::TraceClient::Receiver [private] |
Socket Coral::TraceClient::ReceiverSocket [private] |
const card64 Coral::TraceClient::RestartPositionUpdateDelay = 5000000 [static, private] |
RTCPSender* Coral::TraceClient::Sender [private] |
Socket Coral::TraceClient::SenderSocket [private] |