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); }
134 setDataPeer(
const InetAddress&, tpport_t)
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