ccRTP
Classes | Functions
ccRTP Extension classes

Classes

class  RTPDuplex
 A peer associated RTP socket pair for physically connected peer hosts. More...
 

Functions

 RTPDuplex::RTPDuplex (const InetAddress &bind, tpport_t local, tpport_t remote)
 
virtual RTPDuplex::~RTPDuplex ()
 
UDPTransmit::Error RTPDuplex::connect (const InetHostAddress &host, tpport_t port=0)
 
bool RTPDuplex::isPendingData (microtimeout_t timeout)
 
size_t RTPDuplex::sendData (const unsigned char *const buffer, size_t len)
 
size_t RTPDuplex::recvData (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)
 
void RTPDuplex::setDataPeer (const InetAddress &, tpport_t)
 
void RTPDuplex::setControlPeer (const InetAddress &, tpport_t)
 
size_t RTPDuplex::getNextDataPacketSize () const
 
SyncSourceRTPDuplex::getPeer ()
 

Detailed Description

Function Documentation

◆ connect()

UDPTransmit::Error RTPDuplex::connect ( const InetHostAddress &  host,
tpport_t  port = 0 
)
Parameters
hostpeer address
portpeer port. If not specified, the same as the local is used
Returns
socket status
Examples
rtpduphello.cpp.

◆ getNextDataPacketSize()

size_t RTPDuplex::getNextDataPacketSize ( ) const
inlineprotectedvirtual

Implements IncomingDataQueue.

◆ getPeer()

SyncSource & RTPDuplex::getPeer ( )
protected
Returns
the associated peer information

◆ isPendingData()

bool RTPDuplex::isPendingData ( microtimeout_t  timeout)
inlineprotectedvirtual
Parameters
timeouthow much time to wait for new data
Returns
if there is some new data

Implements RTPDataQueue.

◆ recvData()

size_t RTPDuplex::recvData ( unsigned char *  buffer,
size_t  len,
InetHostAddress &  na,
tpport_t &  tp 
)
inlineprotectedvirtual
Parameters
bufferwhere to store the retrieved data
lenhow many octets to read
naSource network address.
tpSource transport port.
Returns
number of octets read

Implements IncomingDataQueue.

◆ RTPDuplex()

RTPDuplex::RTPDuplex ( const InetAddress &  bind,
tpport_t  local,
tpport_t  remote 
)
Parameters
bindnetwork address this socket is to be bound
localtransport port this socket is to be bound
remotepeer transpor port

◆ sendData()

size_t RTPDuplex::sendData ( const unsigned char *const  buffer,
size_t  len 
)
inlineprotectedvirtual
Parameters
bufferpointer to data to be written
lenhow many octets to write
Returns
number of octets written

Reimplemented from OutgoingDataQueue.

◆ setControlPeer()

void RTPDuplex::setControlPeer ( const InetAddress &  ,
tpport_t   
)
inlineprotectedvirtual
Parameters
-peer host network address.
-peer host RTCP transport port.

Reimplemented from OutgoingDataQueue.

◆ setDataPeer()

void RTPDuplex::setDataPeer ( const InetAddress &  ,
tpport_t   
)
inlineprotectedvirtual
Parameters
-peer host network address.
-peer host RTP data transport port.

Reimplemented from OutgoingDataQueue.

◆ ~RTPDuplex()

virtual RTPDuplex::~RTPDuplex ( )
virtual