class RTP_UDP: public RTP_Session

This class is for the IETF Real Time Protocol interface on UDP/IP

Inheritance:


Public

[more] Construction
[more] Overrides from class RTP_Session
[more] New functions for class
[more] Member variable access


Inherited from RTP_Session:

Public

Operations

Call back frunctions


Documentation

This class is for the IETF Real Time Protocol interface on UDP/IP
o Construction

o RTP_UDP( unsigned id )
Create a new RTP channel.
Parameters:
id - Session ID for RTP channel

o ~RTP_UDP()
Destroy the RTP

o Overrides from class RTP_Session

ovirtual BOOL ReadData(RTP_DataFrame & frame)
Read a data frame from the RTP channel. Any control frames received are dispatched to callbacks and are not returned by this function. It will block until a data frame is available or an error occurs.

ovirtual BOOL WriteData(RTP_DataFrame & frame)
Write a data frame from the RTP channel

ovirtual BOOL WriteControl(RTP_ControlFrame & frame)
Write a control frame from the RTP channel

ovirtual void Close( BOOL reading )
Close down the RTP session.
Parameters:
reading - Closing the read side of the session

ovirtual PString GetLocalHostName()
Get the session description name

o New functions for class

oBOOL Open( PIPSocket::Address localAddress, WORD portBase, WORD portMax, BYTE ipTypeOfService )
Open the UDP ports for the RTP session.
Parameters:
localAddress - Local interface to bind to
portBase - Base of ports to search
portMax - end of ports to search (inclusive)
ipTypeOfService - Type of Service byte

o Member variable access

oPIPSocket::Address GetLocalAddress() const
Get local address of session

oPIPSocket::Address GetRemoteAddress() const
Get remote address of session

oWORD GetLocalDataPort() const
Get local data port of session

oWORD GetLocalControlPort() const
Get local control port of session

oWORD GetRemoteDataPort() const
Get remote data port of session

oWORD GetRemoteControlPort() const
Get remote control port of session

oPUDPSocket& GetDataSocket()
Get data UDP socket of session

oPUDPSocket& GetControlSocket()
Get control UDP socket of session

oBOOL SetRemoteSocketInfo( PIPSocket::Address address, WORD port, BOOL isDataPort )
Set the remote address and port information for session.
Parameters:
address - Address of remote
port - Port on remote
isDataPort - Flag for data or control channel


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.