class H323Listener: public PThread

This class describes a "listener" on a transport protocol.

Inheritance:


Public

[more] Construction
[more] Operations

Protected Fields

[more]
Endpoint that owns the listener.


Documentation

This class describes a "listener" on a transport protocol. A "listener" is an object that listens for incoming connections on the particular transport. It is executed as a separate thread.

The Main() function is used to handle incoming H.323 connections and dispatch them in new threads based on the actual H323Transport class. This is defined in the descendent class that knows what the low level transport is, eg H323ListenerIP for the TCP/IP protocol.

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

o Construction

o H323Listener( H323EndPoint & endpoint )
Create a new listener.
Parameters:
endpoint - Endpoint instance for channel

o Operations

ovirtual BOOL Open()
Open the listener

ovirtual BOOL Close()
Stop the listener thread and no longer accept incoming connections

ovirtual H323Transport* Accept( const PTimeInterval & timeout )
Accept a new incoming transport.
Parameters:
timeout - Time to wait for incoming connection

ovirtual H323TransportAddress GetTransportAddress() const
Get the local transport address on which this listener may be accessed

ovirtual void SetUpTransportPDU( H225_ArrayOf_TransportAddress & pdu, const H323TransportAddress & first )
Set up a transport address PDU for RAS channel.
Parameters:
pdu - List of transport addresses listening on
first - Transport address to take precedence

ovirtual BOOL SetUpTransportPDU( H245_TransportAddress & pdu, const H323TransportAddress & first )
Set up a transport address PDU for bidirectional logical channels.
Parameters:
pdu - Transport addresses listening on
first - Transport address to take precedence

o
Endpoint that owns the listener.


Direct child classes:
H323ListenerTCP

Alphabetic index HTML hierarchy of classes or Java



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