This class is for the IETF Real Time Protocol interface on UDP/IP
Inheritance:
Public Methods
| Construction
|
| Overrides from class RTP_Session
|
| New functions for class
|
| Member variable access
|
Public Methods
-
Operations
Documentation
This class is for the IETF Real Time Protocol interface on UDP/IP
Construction
RTP_UDP( unsigned id )
- Create a new RTP channel.
- Parameters:
- id - Session ID for RTP channel
~RTP_UDP()
- Destroy the RTP
Overrides from class RTP_Session
virtual 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.
virtual BOOL WriteData(RTP_DataFrame & frame)
- Write a data frame from the RTP channel
virtual BOOL WriteControl(RTP_ControlFrame & frame)
- Write a control frame from the RTP channel
virtual void Close( BOOL reading )
- Close down the RTP session.
- Parameters:
- reading - Closing the read side of the session
virtual PString GetLocalHostName()
- Get the session description name
New functions for class
BOOL Open( PIPSocket::Address localAddress, WORD portBase, WORD portMax, BYTE ipTypeOfService, PSTUNClient* stun = NULL )
- 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
stun - STUN server to use createing sockets
Member variable access
PIPSocket::Address GetLocalAddress() const
- Get local address of session
void SetLocalAddress( const PIPSocket::Address & addr )
- Set local address of session
PIPSocket::Address GetRemoteAddress() const
- Get remote address of session
WORD GetLocalDataPort() const
- Get local data port of session
WORD GetLocalControlPort() const
- Get local control port of session
WORD GetRemoteDataPort() const
- Get remote data port of session
WORD GetRemoteControlPort() const
- Get remote control port of session
PUDPSocket& GetDataSocket()
- Get data UDP socket of session
PUDPSocket& GetControlSocket()
- Get control UDP socket of session
BOOL 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++.