UDPTransmit::ErrorRTPDuplex::connect(constInetHostAddress&host,tpport_tport=0)Parametershost peer address
port peer port. If not specified, the same as the local is used
Returns
socket status
Examplesrtpduphello.cpp.
size_tRTPDuplex::getNextDataPacketSize()const[inline],[protected],[virtual]
Implements IncomingDataQueue.
SyncSource&RTPDuplex::getPeer()[protected]Returns
the associated peer information
boolRTPDuplex::isPendingData(microtimeout_ttimeout)[inline],[protected],[virtual]Parameterstimeout how much time to wait for new data
Returns
if there is some new data
Implements RTPDataQueue.
size_tRTPDuplex::recvData(unsignedchar*buffer,size_tlen,InetHostAddress&na,tpport_t&tp)[inline],[protected],[virtual]Parametersbuffer where to store the retrieved data
len how many octets to read
na Source network address.
tp Source transport port.
Returns
number of octets read
Implements IncomingDataQueue.
RTPDuplex::RTPDuplex(constInetAddress&bind,tpport_tlocal,tpport_tremote)Parametersbind network address this socket is to be bound
local transport port this socket is to be bound
remote peer transpor port
size_tRTPDuplex::sendData(constunsignedchar*constbuffer,size_tlen)[inline],[protected],[virtual]Parametersbuffer pointer to data to be written
len how many octets to write
Returns
number of octets written
Reimplemented from OutgoingDataQueue.
voidRTPDuplex::setControlPeer(constInetAddress&,tpport_t)[inline],[protected],[virtual]Parameters- peer host network address.
- peer host RTCP transport port.
Reimplemented from OutgoingDataQueue.
voidRTPDuplex::setDataPeer(constInetAddress&,tpport_t)[inline],[protected],[virtual]Parameters- peer host network address.
- peer host RTP data transport port.
Reimplemented from OutgoingDataQueue.
virtualRTPDuplex::~RTPDuplex()[virtual]