#include <cc++/rtp.h>
Inheritance diagram for RTPDuplex:

Public Member Functions | |
| RTPDuplex (const InetAddress &bind, tpport_t local, tpport_t remote) | |
| virtual | ~RTPDuplex () |
| UDPTransmit::Error | connect (const InetHostAddress &host, tpport_t port=0) |
Protected Member Functions | |
| bool | isPendingData (microtimeout_t timeout) |
| size_t | sendData (const unsigned char *const buffer, size_t len) |
| size_t | recvData (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp) |
| void | setDataPeer (const InetAddress &, tpport_t) |
| void | setControlPeer (const InetAddress &, tpport_t) |
| size_t | getNextDataPacketSize () const |
| SyncSource & | getPeer () |
This has no RTCP and assumes the receiver is connected to a known transmitter, hence no "foreign" packets will arrive.
| RTPDuplex::RTPDuplex | ( | const InetAddress & | bind, | |
| tpport_t | local, | |||
| tpport_t | remote | |||
| ) |
| bind | network address this socket is to be bound | |
| local | transport port this socket is to be bound | |
| remote | peer transpor port |
| virtual RTPDuplex::~RTPDuplex | ( | ) | [virtual] |
| UDPTransmit::Error RTPDuplex::connect | ( | const InetHostAddress & | host, | |
| tpport_t | port = 0 | |||
| ) |
| host | peer address | |
| port | peer port. If not specified, the same as the local is used |
| size_t RTPDuplex::getNextDataPacketSize | ( | ) | const [inline, protected, virtual] |
Implements IncomingDataQueue.
| SyncSource& RTPDuplex::getPeer | ( | ) | [protected] |
| bool RTPDuplex::isPendingData | ( | microtimeout_t | timeout | ) | [inline, protected, virtual] |
| timeout | how much time to wait for new data |
Implements RTPDataQueue.
| size_t RTPDuplex::recvData | ( | unsigned char * | buffer, | |
| size_t | len, | |||
| InetHostAddress & | na, | |||
| tpport_t & | tp | |||
| ) | [inline, protected, virtual] |
| buffer | where to store the retrieved data | |
| len | how many octets to read | |
| na | Source network address. | |
| tp | Source transport port. |
Implements IncomingDataQueue.
| size_t RTPDuplex::sendData | ( | const unsigned char *const | buffer, | |
| size_t | len | |||
| ) | [inline, protected, virtual] |
| buffer | pointer to data to be written | |
| len | how many octets to write |
Implements OutgoingDataQueue.
| void RTPDuplex::setControlPeer | ( | const InetAddress & | , | |
| tpport_t | ||||
| ) | [inline, protected, virtual] |
| - | peer host network address. | |
| - | peer host RTCP transport port. |
Implements OutgoingDataQueue.
| void RTPDuplex::setDataPeer | ( | const InetAddress & | , | |
| tpport_t | ||||
| ) | [inline, protected, virtual] |
| - | peer host network address. | |
| - | peer host RTP data transport port. |
Implements OutgoingDataQueue.
1.4.7