.TH "rtpext" 3 "ccRTP" \" -*- nroff -*- .ad l .nh .SH NAME rtpext \- ccRTP Extension classes .SH SYNOPSIS .br .PP .SS "Classes" .in +1c .ti -1c .RI "class \fBRTPDuplex\fP" .br .RI "A peer associated RTP socket pair for physically connected peer hosts\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "\fBRTPDuplex::RTPDuplex\fP (const InetAddress &bind, tpport_t local, tpport_t remote)" .br .ti -1c .RI "virtual \fBRTPDuplex::~RTPDuplex\fP ()" .br .ti -1c .RI "UDPTransmit::Error \fBRTPDuplex::connect\fP (const InetHostAddress &host, tpport_t port=0)" .br .ti -1c .RI "bool \fBRTPDuplex::isPendingData\fP (\fBmicrotimeout_t\fP timeout)" .br .ti -1c .RI "size_t \fBRTPDuplex::sendData\fP (const unsigned char *const buffer, size_t len)" .br .ti -1c .RI "size_t \fBRTPDuplex::recvData\fP (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp)" .br .ti -1c .RI "void \fBRTPDuplex::setDataPeer\fP (const InetAddress &, tpport_t)" .br .ti -1c .RI "void \fBRTPDuplex::setControlPeer\fP (const InetAddress &, tpport_t)" .br .ti -1c .RI "size_t \fBRTPDuplex::getNextDataPacketSize\fP () const" .br .ti -1c .RI "\fBSyncSource\fP & \fBRTPDuplex::getPeer\fP ()" .br .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "UDPTransmit::Error RTPDuplex::connect (const InetHostAddress & host, tpport_t port = \fC0\fP)" .PP \fBParameters\fP .RS 4 \fIhost\fP peer address .br \fIport\fP peer port\&. If not specified, the same as the local is used .RE .PP \fBReturns\fP .RS 4 socket status .RE .PP .PP \fBExamples\fP .in +1c \fBrtpduphello\&.cpp\fP\&. .SS "size_t RTPDuplex::getNextDataPacketSize () const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Implements \fBIncomingDataQueue\fP\&. .SS "\fBSyncSource\fP & RTPDuplex::getPeer ()\fC [protected]\fP" .PP \fBReturns\fP .RS 4 the associated peer information .RE .PP .SS "bool RTPDuplex::isPendingData (\fBmicrotimeout_t\fP timeout)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP \fBParameters\fP .RS 4 \fItimeout\fP how much time to wait for new data .RE .PP \fBReturns\fP .RS 4 if there is some new data .RE .PP .PP Implements \fBRTPDataQueue\fP\&. .SS "size_t RTPDuplex::recvData (unsigned char * buffer, size_t len, InetHostAddress & na, tpport_t & tp)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP \fBParameters\fP .RS 4 \fIbuffer\fP where to store the retrieved data .br \fIlen\fP how many octets to read .br \fIna\fP Source network address\&. .br \fItp\fP Source transport port\&. .RE .PP \fBReturns\fP .RS 4 number of octets read .RE .PP .PP Implements \fBIncomingDataQueue\fP\&. .SS "RTPDuplex::RTPDuplex (const InetAddress & bind, tpport_t local, tpport_t remote)" .PP \fBParameters\fP .RS 4 \fIbind\fP network address this socket is to be bound .br \fIlocal\fP transport port this socket is to be bound .br \fIremote\fP peer transpor port .RE .PP .SS "size_t RTPDuplex::sendData (const unsigned char *const buffer, size_t len)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP \fBParameters\fP .RS 4 \fIbuffer\fP pointer to data to be written .br \fIlen\fP how many octets to write .RE .PP \fBReturns\fP .RS 4 number of octets written .RE .PP .PP Reimplemented from \fBOutgoingDataQueue\fP\&. .SS "void RTPDuplex::setControlPeer (const InetAddress &, tpport_t)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP \fBParameters\fP .RS 4 \fI-\fP peer host network address\&. .br \fI-\fP peer host RTCP transport port\&. .RE .PP .PP Reimplemented from \fBOutgoingDataQueue\fP\&. .SS "void RTPDuplex::setDataPeer (const InetAddress &, tpport_t)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP \fBParameters\fP .RS 4 \fI-\fP peer host network address\&. .br \fI-\fP peer host RTP data transport port\&. .RE .PP .PP Reimplemented from \fBOutgoingDataQueue\fP\&. .SS "virtual RTPDuplex::~RTPDuplex ()\fC [virtual]\fP" .SH "Author" .PP Generated automatically by Doxygen for ccRTP from the source code\&.