RTPTransceiver Class Reference

[ARTS Index] [ARTS Heirarchy]


Abstract base class for full duplex UDP RTP streaming. More...

#include <rtp.h>

Inherits: RTPReceiver, RTSSendThread

Public Members

Protected Members


Detailed Description

This abstract class implements the basic support needed for full duplex realtime streaming using two service threads.


void Start(void)

Start both the sender and receiver service threads.

RTPTransceiver(InetAddress &bind, short port, int pri)

Create and bind an RTP receiver to an internet interface address and known port number for the purpose of receiving RTP.

Parameters:
pri of service threads relative to parent.
session id for sending under.
port address to bind the service under.
bind address to bind this socket to.

ssize_t RTSSend(unsigned char *buf, size_t len)

Update the time stamp for the next sent packet from the service thread.

Parameters:
current sending timeout. void RTSUpdate(timeout_t timer) {Skip();}; /** Write data from the service thread to the RTP socket.
address buffer to write.
len of bytes to write in addition to the header.
Returns:
number of bytes written on success, -1 on failure.

void setTimeout(timeout_t timeout)

Complex setTimeout must set both sender and receiver.

Parameters:
session time window in milliseconds.

  • Author: David Sugar <dyfet@ostel.com>.
  • Documentation generated by dyfet@home.tycho.com on Fri Jul 2 11:43:56 EDT 1999
Kdoc