Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions | Variables
base.h File Reference

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

#include <cc++/config.h>
#include <cc++/socket.h>
Include dependency graph for base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CCXX_PACKED
 

Typedefs

typedef uint32 microtimeout_t
 Time interval expressed in microseconds. More...
 
typedef uint32 nanotimeout_t
 Time interval expressed in nanoseconds. More...
 

Functions

__EXPORT timeval microtimeout2Timeval (microtimeout_t to)
 Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value. More...
 
microtimeout_t timeval2microtimeout (const timeval &t)
 Convert a time interval, expressed as a timeval value into a microseconds counter. More...
 
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. More...
 

Variables

const uint8 CCRTP_VERSION = 2
 RTP protocol version supported. More...
 
const tpport_t DefaultRTPDataPort = 5004
 registered default RTP data transport port More...
 
const tpport_t DefaultRTCPPort = 5005
 registered default RTCP transport port More...
 

Detailed Description

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

Definition in file base.h.

Macro Definition Documentation

#define CCXX_PACKED

Definition at line 50 of file base.h.

Typedef Documentation

typedef uint32 microtimeout_t

Time interval expressed in microseconds.

Definition at line 69 of file base.h.

typedef uint32 nanotimeout_t

Time interval expressed in nanoseconds.

Definition at line 72 of file base.h.

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
totime 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
ttime, as a timeval.
Returns
the same time, as a microseconds counter.

Definition at line 92 of file base.h.

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
t1First timeval.
t2Second timeval.
Returns
difference between t1 and t2, in microseconds.

Definition at line 104 of file base.h.

Variable Documentation

const uint8 CCRTP_VERSION = 2

RTP protocol version supported.

Definition at line 66 of file base.h.

const tpport_t DefaultRTCPPort = 5005

registered default RTCP transport port

Definition at line 114 of file base.h.

const tpport_t DefaultRTPDataPort = 5004

registered default RTP data transport port

Definition at line 111 of file base.h.