37 #ifndef CCXX_RTP_BASE_H_
38 #define CCXX_RTP_BASE_H_
40 #ifndef CCXX_SOCKET_H_
41 #include <commoncpp/config.h>
42 #include <commoncpp/socket.h>
43 #include <commoncpp/udp.h>
49 #elif !defined(__hpux) && !defined(_AIX)
91 {
return ((t.tv_sec * 1000000ul) + t.tv_usec); }
104 return ((t1.tv_sec - t2.tv_sec) * 1000000ul) +
105 (t1.tv_usec - t2.tv_usec);
116 #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.
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
__EXPORT timeval microtimeout2Timeval(microtimeout_t to)
Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value...