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

RTPDuplex Class Reference

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 ()

Private Attributes

tpport_t base

Detailed Description

RTP peer host over UDP.

A peer associated RTP socket pair for physically connected peer hosts. This has no RTCP and assumes the receiver is connected to a known transmitter, hence no "foreign" packets will arrive.

Author(s):
David Sugar
Examples:

rtpduphello.cpp.

Definition at line 2390 of file rtp.h.


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

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
Examples:
rtpduphello.cpp.

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.

Definition at line 2425 of file rtp.h.

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.

Definition at line 2443 of file rtp.h.

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.

Definition at line 2434 of file rtp.h.


Member Data Documentation

tpport_t RTPDuplex::base [private]
 

Definition at line 2453 of file rtp.h.


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 10:28:26 2001 for ccRTP by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001