44 #ifndef CCXX_RTP_EXT_H
45 #define CCXX_RTP_EXT_H
47 #ifndef COMMONCPP_SOCKET_H_
48 #include <commoncpp/socket.h>
49 #include <commoncpp/udp.h>
81 RTPDuplex(
const InetAddress &bind, tpport_t local, tpport_t remote);
96 connect(
const InetHostAddress &host, tpport_t port = 0);
106 {
return isPendingReceive(timeout); }
114 sendData(
const unsigned char *
const buffer,
size_t len)
115 {
return UDPTransmit::transmit((
const char *)buffer, len); }
126 InetHostAddress& na, tpport_t& tp)
128 return UDPReceive::receive(buffer, len); }
150 size_t len;
ccioctl(const_cast<RTPDuplex*>(
this)->UDPReceive::getReceiver(),FIONREAD,len);
return len;
166 #endif //CCXX_RTP_EXT_H
size_t sendData(const unsigned char *const buffer, size_t len)
Generic RTP input/output queues.
void setDataPeer(const InetAddress &, tpport_t)
Synchronization source in an RTP session.
size_t recvData(unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition of socket classes for different underlying transport and/or network protocols that can be ...
size_t getNextDataPacketSize() const
void setControlPeer(const InetAddress &, tpport_t)
A peer associated RTP socket pair for physically connected peer hosts.
size_t ccioctl(int so, int request, size_t &len)
bool isPendingData(microtimeout_t timeout)
A packet queue handler for building different kinds of RTP protocol systems.