base.h(3)

πŸ“¦
version 2.0.9 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– 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 a microtimeout_t (number of microseconds), into a timeval value.
  • microtimeout_t timeval2microtimeout (const timeval &t) β€” Convert a time interval, expressed as a timeval value into a microseconds counter.
  • microtimeout_t timevalDiff2microtimeout (const timeval &t1, const timeval &t2) β€” Convert a time interval, expressed as the difference between two timeval values (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 port
  • const 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 timeval value.

microtimeout_t timeval2microtimeout (const timeval & t) [inline]

Convert a time interval, expressed as a timeval value into a microseconds counter.

Parameters

  • t β€” time, as a timeval.

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 β€” First timeval.
  • t2 β€” Second timeval.

Returns

  • difference between t1 and t2, 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