logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

base.h - Base elements for RTP stacks: constants, types and global functions.

Author

       Generated automatically by Doxygen for ccRTP from the source code.

                                                      ccRTP                                            base.h(3)

Detailed Description

       Base elements for RTP stacks: constants, types and global functions.

Function Documentation

__EXPORTtimevalmicrotimeout2Timeval(microtimeout_tto)
       Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value.

       Parametersto time interval, in microseconds.

       Returns
           the same time interval, as a timeval value.

   microtimeout_ttimeval2microtimeout(consttimeval&t)[inline]
       Convert a time interval, expressed as a timeval value into a microseconds counter.

       Parameterst time, as a timeval.

       Returns
           the same time, as a microseconds counter.

   microtimeout_ttimevalDiff2microtimeout(consttimeval&t1,consttimeval&t2)[inline]
       Convert a time interval, expressed as the difference between two timeval values (t1-t2), into a
       microseconds counter.

       Parameterst1 First timeval.
           t2 Second timeval.

       Returns
           difference between t1 and t2, in microseconds.

Macro Definition Documentation

#defineCCXX_PACKED

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_PACKEDTypedefs
       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_ttimeval2microtimeout (const timeval &t)
           Convert a time interval, expressed as a timeval value into a microseconds counter.
       microtimeout_ttimevalDiff2microtimeout (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

Typedef Documentation

typedefuint32microtimeout_t
       Time interval expressed in microseconds.

   typedefuint32nanotimeout_t
       Time interval expressed in nanoseconds.

Variable Documentation

constuint8CCRTP_VERSION=2
       RTP protocol version supported.

   consttpport_tDefaultRTCPPort=5005
       registered default RTCP transport port

   consttpport_tDefaultRTPDataPort=5004
       registered default RTP data transport port

See Also