class H323DataChannel: public H323UnidirectionalChannel

This class describes a data logical channel between the two endpoints.

Inheritance:


Public

[more] Construction
[more] Overrides from class H323Channel
[more] Operations


Inherited from H323UnidirectionalChannel:


Inherited from H323Channel:

Public

Overriedes from PObject

Member variable access


Documentation

This class describes a data logical channel between the two endpoints. They may be created and deleted as required in the H245 protocol.

An application may create a descendent off this class and override functions as required for operating the channel protocol.

o Construction

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

o ~H323DataChannel()
Destroy the channel

o Overrides from class H323Channel

ovirtual BOOL Open()
Open the channel

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

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

o Operations

ovirtual BOOL CreateListener()
Create the H323Listener class to be used. This is called on receipt of an OpenLogicalChannel request.

The default behaviour creates a compatible listener using the connections control channel as a basis and returns TRUE if successful.

ovirtual BOOL CreateTransport()
Create the H323Transport class to be used. This is called on receipt of an OpenLogicalChannelAck response. It should not return TRUE unless the transport member variable is set.

The default behaviour uses the connection signalling channel to create the transport and returns TRUE if successful.


Direct child classes:
H323_T38Channel
H323_T120Channel

Alphabetic index HTML hierarchy of classes or Java



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