38 #ifndef CCXX_RTP_BASE_H_
39 #define CCXX_RTP_BASE_H_
41 #ifndef CCXX_SOCKET_H_
42 #include <cc++/config.h>
49 #elif !defined(__hpux) && !defined(_AIX)
54 #ifdef CCXX_NAMESPACES
93 {
return ((t.tv_sec * 1000000ul) + t.tv_usec); }
106 return ((t1.tv_sec - t2.tv_sec) * 1000000ul) +
107 (t1.tv_usec - t2.tv_usec);
116 #ifndef HAVE_GETTIMEOFDAY
119 gettimeofday(
struct timeval *tv_,
void *tz_);
123 #ifdef CCXX_NAMESPACES
127 #endif // ndef CCXX_RTP_BASE_H_
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.
const uint8 CCRTP_VERSION
RTP protocol version supported.
uint32 microtimeout_t
Time interval expressed in microseconds.
unsigned short tpport_t
Transport Protocol Ports.
microtimeout_t timeval2microtimeout(const timeval &t)
Convert a time interval, expressed as a timeval value into a microseconds counter.
uint32 nanotimeout_t
Time interval expressed in nanoseconds.
const tpport_t DefaultRTCPPort
registered default RTCP transport port
const tpport_t DefaultRTPDataPort
registered default RTP data transport port
Network addresses and sockets related classes.
__EXPORT timeval microtimeout2Timeval(microtimeout_t to)
Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value...