class H323_RTPChannel: public H323UnidirectionalChannel

This class is for encpsulating the IETF Real Time Protocol interface

Inheritance:


Public

[more] Construction
[more] Overrides from class H323Channel


Inherited from H323UnidirectionalChannel:


Inherited from H323Channel:

Public

Overriedes from PObject

Operations

Member variable access


Documentation

This class is for encpsulating the IETF Real Time Protocol interface
o Construction

o H323_RTPChannel( H323Connection & connection, const H323Capability & capability, Directions direction, RTP_Session & rtp )
Create a new channel.
Parameters:
connection - Connection to endpoint for channel
capability - Capability channel is using
direction - Direction of channel
rtp - RTP session for channel

o ~H323_RTPChannel()
Destroy the channel

o Overrides from class H323Channel

ovirtual void CleanUpOnTermination()
This is called to clean up any threads on connection termination

ovirtual unsigned GetSessionID() const
Indicate the session number of the channel. Return session for channel. This returns the session ID of the RTP_Session member variable.

ovirtual BOOL Open()
Open the channel

ovirtual void Receive()
Handle channel data reception.

This is called by the thread started by the Start() function and is typically a loop writing to the codec and reading from the transport (eg RTP_session).

ovirtual void Transmit()
Handle channel data transmission.

This is called by the thread started by the Start() function and is typically a loop reading from the codec and writing to the transport (eg an RTP_session).

ovirtual BOOL OnSendingPDU( H245_OpenLogicalChannel & openPDU ) const
Fill out the OpenLogicalChannel PDU for the particular channel type.
Parameters:
openPDU - Open PDU to send.

ovirtual void OnSendOpenAck( const H245_OpenLogicalChannel & open, H245_OpenLogicalChannelAck & ack ) const
This is called when request to create a channel is received from a remote machine and is about to be acknowledged.
Parameters:
open - Open PDU
ack - Acknowledgement PDU

ovirtual BOOL OnReceivedPDU( const H245_OpenLogicalChannel & pdu, unsigned & errorCode )
This is called after a request to create a channel occurs from the local machine via the H245LogicalChannelDict::Open() function, and the request has been acknowledged by the remote endpoint.

The default makes sure the parameters are compatible and passes on the PDU to the rtp session.

Parameters:
pdu - Open PDU
errorCode - Error code on failure

ovirtual BOOL OnReceivedAckPDU( const H245_OpenLogicalChannelAck & pdu )
This is called after a request to create a channel occurs from the local machine via the H245LogicalChannelDict::Open() function, and the request has been acknowledged by the remote endpoint.

The default makes sure the parameters are compatible and passes on the PDU to the rtp session.

Parameters:
pdu - Acknowledgement PDU


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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