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;
uint32 microtimeout_t
Time interval expressed in microseconds.
Definition: base.h:68
Definition of socket classes for different underlying transport and/or network protocols that can be ...
size_t ccioctl(int so, int request, size_t &len)
Definition: channel.h:46
A packet queue handler for building different kinds of RTP protocol systems.
Definition: ioqueue.h:78
A peer associated RTP socket pair for physically connected peer hosts.
Definition: ext.h:73
Synchronization source in an RTP session.
Definition: sources.h:195
size_t getNextDataPacketSize() const
Definition: ext.h:146
bool isPendingData(microtimeout_t timeout)
Definition: ext.h:104
void setControlPeer(const InetAddress &, tpport_t)
Definition: ext.h:142
UDPTransmit::Error connect(const InetHostAddress &host, tpport_t port=0)
void setDataPeer(const InetAddress &, tpport_t)
Definition: ext.h:134
RTPDuplex(const InetAddress &bind, tpport_t local, tpport_t remote)
size_t recvData(unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)
Definition: ext.h:124
size_t sendData(const unsigned char *const buffer, size_t len)
Definition: ext.h:113
Generic RTP input/output queues.