base.h(3)
π base.h β the RTP starter pack π
okay bestie, this is the base.h page from the Library Functions Manual β literally the base elements for RTP stacks: constants, types and global functions. it's giving "foundation of the whole thing" energy and honestly? iconic. π«Ά
β¨ NAME β¨
base.h β Base elements for RTP stacks: constants, types and global functions.
πΈ SYNOPSIS πΈ
#include <commoncpp/config.h>
#include <commoncpp/socket.h>
#include <commoncpp/udp.h>
π Macros π
#define CCXX_PACKED
π¦ Typedefs π¦
typedef uint32 microtimeout_tβ Time interval expressed in microseconds.typedef uint32 nanotimeout_tβ Time interval expressed in nanoseconds.
β Functions β
__EXPORT timeval microtimeout2Timeval (microtimeout_t to)β Convert a time interval, expressed as amicrotimeout_t(number of microseconds), into atimevalvalue.microtimeout_t timeval2microtimeout (const timeval &t)β Convert a time interval, expressed as atimevalvalue into a microseconds counter.microtimeout_t timevalDiff2microtimeout (const timeval &t1, const timeval &t2)β Convert a time interval, expressed as the difference between twotimevalvalues (t1-t2), into a microseconds counter.
π Variables π
const uint8 CCRTP_VERSION = 2β RTP protocol version supported.const tpport_t DefaultRTPDataPort = 5004β registered default RTP data transport portconst tpport_t DefaultRTCPPort = 5005β registered default RTCP transport port
π₯ Detailed Description π₯
Base elements for RTP stacks: constants, types and global functions.
that's it. that's the whole vibe. short and slay. π
π Macro Definition Documentation π
#define CCXX_PACKED
no extra deets on this one, bestie β it's just there, doing its little macro thing. β¨
π§ Typedef Documentation π§
typedef uint32 microtimeout_t
Time interval expressed in microseconds.
typedef uint32 nanotimeout_t
Time interval expressed in nanoseconds.
π Function Documentation π
__EXPORT timeval microtimeout2Timeval (microtimeout_t to)
Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value.
Parameters
toβ time interval, in microseconds.
Returns
- the same time interval, as a
timevalvalue.
microtimeout_t timeval2microtimeout (const timeval & t) [inline]
Convert a time interval, expressed as a timeval value into a microseconds counter.
Parameters
tβ time, as atimeval.
Returns
- the same time, as a microseconds counter.
microtimeout_t timevalDiff2microtimeout (const timeval & t1, const timeval & t2) [inline]
Convert a time interval, expressed as the difference between two timeval values (t1-t2), into a microseconds counter.
Parameters
t1β Firsttimeval.t2β Secondtimeval.
Returns
- difference between
t1andt2, in microseconds.
π Variable Documentation π
const uint8 CCRTP_VERSION = 2
RTP protocol version supported.
const tpport_t DefaultRTCPPort = 5005
registered default RTCP transport port
const tpport_t DefaultRTPDataPort = 5004
registered default RTP data transport port
π Author π
Generated automatically by Doxygen for ccRTP from the source code.
and that's the whole page, bestie π₯Ήπ this was base.h(3), straight outta the ccRTP source, dated ccRTP β no cap, the footer said so. go forth and stack your RTPs. π¦β¨π
π¦ where this page comes from
- debian trixie: libccrtp-doc 2.0.9-4.1 Β· GPL-2.0-or-later WITH MIF exception
- ubuntu noble: libccrtp-doc 2.0.9-2.5build1
- ubuntu questing: libccrtp-doc 2.0.9-4.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms