Go to the documentation of this file.
43 #ifndef CCXX_RTP_EXT_H
44 #define CCXX_RTP_EXT_H
46 #ifndef COMMONCPP_SOCKET_H_
47 #include <commoncpp/socket.h>
48 #include <commoncpp/udp.h>
72 protected UDPReceive,
public UDPTransmit
80 RTPDuplex(
const InetAddress &bind, tpport_t local, tpport_t remote);
95 connect(
const InetHostAddress &host, tpport_t port = 0);
105 {
return isPendingReceive(timeout); }
113 sendData(
const unsigned char *
const buffer,
size_t len)
114 {
return UDPTransmit::transmit((
const char *)buffer, len); }
125 InetHostAddress& na, tpport_t& tp)
127 return UDPReceive::receive(buffer, len); }
149 size_t len;
ccioctl(
const_cast<RTPDuplex*
>(
this)->UDPReceive::getReceiver(),FIONREAD,len);
return len;
158 tpport_t dataBasePort;
165 #endif //CCXX_RTP_EXT_H
size_t ccioctl(int so, int request, size_t &len)
Definition: channel.h:46
Synchronization source in an RTP session.
Definition: sources.h:194
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition: base.h:68
void setDataPeer(const InetAddress &, tpport_t)
Definition: ext.h:134
size_t getNextDataPacketSize() const
Definition: ext.h:146
size_t recvData(unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)
Definition: ext.h:124
void setControlPeer(const InetAddress &, tpport_t)
Definition: ext.h:142
size_t sendData(const unsigned char *const buffer, size_t len)
Definition: ext.h:113
bool isPendingData(microtimeout_t timeout)
Definition: ext.h:104
RTP peer host over UDP.
Definition: ext.h:71
Generic RTP input/output queues.
RTP data queue handler.
Definition: ioqueue.h:75