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>
73 protected UDPReceive,
public UDPTransmit
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); }
135 setDataPeer(
const InetAddress&, tpport_t)
150 size_t len;
ccioctl(const_cast<RTPDuplex*>(
this)->UDPReceive::getReceiver(),FIONREAD,len);
return len;
159 tpport_t dataBasePort;
166 #endif //CCXX_RTP_EXT_H