SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Classes | Typedefs | Functions | Variables
qrtplib Namespace Reference

Classes

class  RTCPAPPPacket
 
class  RTCPBYEPacket
 
struct  RTCPCommonHeader
 
class  RTCPCompoundPacket
 
class  RTCPCompoundPacketBuilder
 
class  RTCPPacket
 
class  RTCPPacketBuilder
 
struct  RTCPReceiverReport
 
class  RTCPReceiverReportInfo
 
class  RTCPRRPacket
 
class  RTCPScheduler
 
class  RTCPSchedulerParams
 
struct  RTCPSDESHeader
 
class  RTCPSDESInfo
 
class  RTCPSDESPacket
 
struct  RTCPSenderReport
 
class  RTCPSenderReportInfo
 
class  RTCPSRPacket
 
class  RTCPUnknownPacket
 
class  RTPAddress
 
class  RTPCollisionList
 
class  RTPEndian
 
struct  RTPErrorInfo
 
struct  RTPExtensionHeader
 
struct  RTPHeader
 
class  RTPInternalSourceData
 
class  RTPKeyHashTable
 
class  RTPNTPTime
 
class  RTPPacket
 
class  RTPPacketBuilder
 
class  RTPRandom
 
class  RTPRandomRand48
 
class  RTPRandomRandS
 
class  RTPRandomURandom
 
class  RTPRawPacket
 
class  RTPSession
 
class  RTPSessionParams
 
class  RTPSessionSources
 
class  RTPSourceData
 
struct  RTPSourceIdentifier
 
class  RTPSources
 
class  RTPSources_GetHashIndex
 
class  RTPSourceStats
 
class  RTPTime
 
class  RTPTimeInitializerObject
 
class  RTPTransmissionInfo
 
class  RTPTransmissionParams
 
class  RTPTransmitter
 
class  RTPUDPTransmissionInfo
 
class  RTPUDPTransmissionParams
 
class  RTPUDPTransmitter
 

Typedefs

typedef int SocketType
 

Functions

std::string RTPGetErrorString (int errcode)
 
double RTPTime_timespecToDouble (struct timespec &ts)
 

Variables

RTPTimeInitializerObject timeinit
 

Typedef Documentation

◆ SocketType

typedef int qrtplib::SocketType

Definition at line 51 of file rtpsocketutil.h.

Function Documentation

◆ RTPGetErrorString()

QRTPLIB_API std::string qrtplib::RTPGetErrorString ( int  errcode)

Returns a string describing the error code errcode.

Definition at line 248 of file rtperrors.cpp.

References qrtplib::RTPErrorInfo::code, qrtplib::RTPErrorInfo::description, i, and RTP_SNPRINTF.

Referenced by RTPSink::addDestination(), RTPSink::deleteDestination(), RTPSink::RTPSink(), RTPSink::setDestination(), RTPSink::setPayloadInformation(), and RTPSink::write().

249 {
250  int i;
251 
252  if (errcode >= 0)
253  return std::string("No error");
254 
255  i = 0;
256  while (ErrorDescriptions[i].code != 0)
257  {
258  if (ErrorDescriptions[i].code == errcode)
259  return std::string(ErrorDescriptions[i].description);
260  i++;
261  }
262 
263  char str[16];
264 
265  RTP_SNPRINTF(str, 16, "(%d)", errcode);
266 
267  return std::string("Unknown error code") + std::string(str);
268 }
#define RTP_SNPRINTF
int32_t i
Definition: decimators.h:244
+ Here is the caller graph for this function:

◆ RTPTime_timespecToDouble()

double qrtplib::RTPTime_timespecToDouble ( struct timespec &  ts)
inline

Definition at line 288 of file rtptimeutilities.h.

Referenced by qrtplib::RTPTime::CurrentTime().

289 {
290  return (double) ts.tv_sec + 1e-9 * (double) ts.tv_nsec;
291 }
+ Here is the caller graph for this function:

Variable Documentation

◆ timeinit