class H323Listener

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

Inheritance:


Public Methods

[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 Overrides from PObject

o Operations

ovirtual BOOL Open() = 0
Open the listener

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

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

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

ovirtual BOOL SetUpTransportPDU( H245_TransportAddress & pdu, const H323Transport & associatedTransport ) = 0
Set up a transport address PDU for bidirectional logical channels.
Parameters:
pdu - Transport addresses listening on
associatedTransport - Associated transport for precendence and translation

o Endpoint that owns the listener
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++.