RTPBroadcast Class Reference

[ARTS Index] [ARTS Heirarchy]


Abstract base class for UDP RTP subnet broadcast. More...

#include <rtp.h>

Inherits: RTPSocket, RTSSendThread

Public Members

Protected Members


Detailed Description

This abstract class implements the basic support needed for a RTP broadcast session using UDP packets. Broadcasts are uni-directional and can be used to flood a subnet with real-time streaming. There should also be a RTPMulticast added soon.


RTPBroadcast(BroadcastAddress &bind, short port, int pri)

Create and bind an RTP socket to an internet interface address and known port number for the purpose of subnet broadcasting with 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.

void RTSUpdate(timeout_t timer)

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

Parameters:
current sending timeout.

ssize_t RTSSend(unsigned char *buf, size_t len)

Write data from the service thread to the RTP socket.

Parameters:
address buffer to write.
len of bytes to write in addition to the header.
Returns:
number of bytes written on success, -1 on failure.

  • Author: David Sugar <dyfet@ostel.com>.
  • Documentation generated by dyfet@centauri.sys on Fri Jul 2 02:20:52 EDT 1999
Kdoc