Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

RTPDuplex Class Reference

A peer associated RTP socket pair for physically connected peer hosts. RTP peer host over UDP. More...

#include <cc++/rtp.h>

Inheritance diagram for RTPDuplex::

RTPQueue UDPReceive UDPTransmit Thread MembershipControl Members List of all members.

Public Methods

 RTPDuplex (const InetAddress &bind, tpport_t local, tpport_t remote, int pri)
virtual ~RTPDuplex ()
sockerror_t Connect (const InetHostAddress &host, tpport_t port=0)

Protected Methods

bool isPendingData (microtimeout_t timeout)
size_t writeData (const unsigned char *const buffer, size_t len)
size_t readData (unsigned char *buffer, size_t len)
RTPSourcegetPeer ()

Detailed Description

A peer associated RTP socket pair for physically connected peer hosts. RTP peer host over UDP.

This has no RTCP and assumes the receiver is connected to a known transmitter, hence no "foreign" packets will arrive.

Author:
David Sugar


Constructor & Destructor Documentation

RTPDuplex::RTPDuplex const InetAddress &   bind,
tpport_t   local,
tpport_t   remote,
int   pri
 

Parameters:
bind   network address this socket is to be bound
local   transport port this socket is to be bound
remote   peer transpor port
pri   service thread base priority relative to it's parent

virtual RTPDuplex::~RTPDuplex   [virtual]
 


Member Function Documentation

sockerror_t RTPDuplex::Connect const InetHostAddress &   host,
tpport_t   port = 0
 

Parameters:
host   peer address
port   peer port. If not specified, the same as the local is used
Returns:
socket status

RTPSource& RTPDuplex::getPeer   [protected]
 

Returns:
the associated peer information

bool RTPDuplex::isPendingData microtimeout_t   timeout [inline, protected, virtual]
 

Parameters:
timeout   how much time to wait for new data
Returns:
if there is some new data

Reimplemented from RTPQueue.

size_t RTPDuplex::readData unsigned char *   buffer,
size_t   len
[inline, protected, virtual]
 

Parameters:
buffer   where to store the retrieved data
len   how many octets to read
Returns:
number of octets read

Reimplemented from RTPQueue.

size_t RTPDuplex::writeData const unsigned char *const   buffer,
size_t   len
[inline, protected, virtual]
 

Parameters:
buffer   pointer to data to be written
len   how many octets to write
Returns:
number of octets written

Reimplemented from RTPQueue.


The documentation for this class was generated from the following file:
Generated at Sat Nov 3 09:44:13 2001 for ccRTP by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001