Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RTPSocket Class Reference

Generic RTP protocol stack for exchange of realtime data. RTP protocol stack based on Common C++. More...

#include <rtp.h>

Inheritance diagram for RTPSocket:

RTPQueue UDPReceive UDPTransmit RTCPSocket Thread UDPSocket List of all members.

Public Methods

 RTPSocket (const InetAddress &bind, tpport_t port = 5004, int pri = 0)
 ~RTPSocket ()
void endSocket (void)
sockerror_t Connect (const InetHostAddress &ia, tpport_t port = 0)
 Connect to a foriegn RTP socket and start the service thread. More...


Protected Methods

bool isPendingArrival (timeout_t timeout)
int readPacket (unsigned char *buffer, unsigned len)
int writePacket (unsigned char *buffer, unsigned len)

Protected Attributes

tpport_t base

Detailed Description

Generic RTP protocol stack for exchange of realtime data. RTP protocol stack based on Common C++.

This stack uses the concept of packet send and receive queues to schedule and buffer outgoing packets and to arrange or reorder incoming packets as they arrive. A single service thread both schedules sending of outgoing packets and receipt of incoming packets.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

RTPSocket::RTPSocket ( const InetAddress & bind,
tpport_t port = 5004,
int pri = 0 )
 

RTPSocket::~RTPSocket ( )
 


Member Function Documentation

sockerror_t RTPSocket::Connect ( const InetHostAddress & ia,
tpport_t port = 0 )
 

Connect to a foriegn RTP socket and start the service thread.

If no port is specified then it is assumed to be the same as the locally bound port number.

Returns:
failure type.
Parameters:
address   of foreign socket.
port   number of foreign connection.

Reimplemented from RTCPSocket.

void RTPSocket::endSocket ( void )
 

bool RTPSocket::isPendingArrival ( timeout_t timeout ) [inline, protected, virtual]
 

Reimplemented from RTPQueue.

int RTPSocket::readPacket ( unsigned char * buffer,
unsigned len ) [inline, protected, virtual]
 

Reimplemented from RTPQueue.

int RTPSocket::writePacket ( unsigned char * buffer,
unsigned len ) [inline, protected, virtual]
 

Reimplemented from RTPQueue.


Member Data Documentation

tpport_t RTPSocket::base [protected]
 


The documentation for this class was generated from the following file:
Generated at Thu Jun 21 12:18:48 2001 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000