49 #if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
62 t.tv_usec = (uint32)((((
double)lsw) * 1000000.0) / ((uint32)(~0)));
69 const uint32 f = 65536;
70 uint32 result = t.tv_sec * f;
71 result += (t.tv_usec << 12) / 125000 * 2;
79 result.tv_sec = to % 1000000;
80 result.tv_usec = to / 1000000;
85 rtcpSendBuffer(new unsigned char[mtu]()), rtcpRecvBuffer(new unsigned char[mtu]()),
92 #ifdef CCXX_EXCEPTIONS
96 #ifdef CCXX_EXCEPTIONS
101 #ifdef CCXX_EXCEPTIONS
128 pointer += (ntohs(pkt->
fh.
length)+1) << 2;
131 if ( pointer != len )
unsigned char * rtcpSendBuffer
NAMESPACE_COMMONCPP const uint32 NTP_EPOCH_OFFSET
const uint8 CCRTP_VERSION
RTP protocol version supported.
bool checkCompoundRTCPHeader(size_t len)
Perform RTCP compound packet header validity check as specified in draft-ietv-avt-rtp-new.
uint32 microtimeout_t
Time interval expressed in microseconds.
static const uint16 RTCP_VALID_VALUE
Declaration of ccRTP internal stuff.
Struct representing general RTCP packet headers as they are sent through the network.
uint32 timevalIntervalTo65536(timeval &t)
Convert a time interval, expressed as a timeval, into a 32-bit time interval expressed in units of 1/...
unsigned char * rtcpRecvBuffer
uint16 length
number of 32-bit words in the packet (minus one).
RTCPCompoundHandler(uint16 mtu=defaultPathMTU)
timeval microtimeout2Timeval(microtimeout_t to)
Convert a time interval, expressed as a microtimeout_t (number of microseconds), into a timeval value...
timeval NTP2Timeval(uint32 msw, uint32 lsw)
Convert a NTP timestamp, expressed as two 32-bit long words, into a timeval value.
static const uint16 RTCP_VALID_MASK
unsigned char version
Version, currently 2.
RTCPFixedHeader fh
Fixed RTCP header.