Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

H323Listener Class Reference

#include <transports.h>

Inheritance diagram for H323Listener:

H323ListenerTCP List of all members.

Public Member Functions

Construction
 H323Listener (H323EndPoint &endpoint)
Overrides from PObject
virtual void PrintOn (ostream &strm) const
Operations
virtual BOOL Open ()=0
virtual BOOL Close ()=0
virtual H323TransportAccept (const PTimeInterval &timeout)=0
virtual H323TransportAddress GetTransportAddress () const =0
virtual BOOL SetUpTransportPDU (H245_TransportAddress &pdu, const H323Transport &associatedTransport)=0

Protected Attributes

H323EndPointendpoint

Detailed Description

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.


Constructor & Destructor Documentation

H323Listener::H323Listener H323EndPoint endpoint  ) 
 

Create a new listener.

Parameters:
endpoint  Endpoint instance for channel


Member Function Documentation

virtual H323Transport* H323Listener::Accept const PTimeInterval &  timeout  )  [pure virtual]
 

Accept a new incoming transport.

Parameters:
timeout  Time to wait for incoming connection

Implemented in H323ListenerTCP.

virtual BOOL H323Listener::Close  )  [pure virtual]
 

Stop the listener thread and no longer accept incoming connections.

Implemented in H323ListenerTCP.

virtual H323TransportAddress H323Listener::GetTransportAddress  )  const [pure virtual]
 

Get the local transport address on which this listener may be accessed.

Implemented in H323ListenerTCP.

virtual BOOL H323Listener::Open  )  [pure virtual]
 

Open the listener.

Implemented in H323ListenerTCP.

virtual void H323Listener::PrintOn ostream &  strm  )  const [virtual]
 

virtual BOOL H323Listener::SetUpTransportPDU H245_TransportAddress pdu,
const H323Transport associatedTransport
[pure virtual]
 

Set up a transport address PDU for bidirectional logical channels.

Parameters:
associatedTransport  Transport addresses listening on Associated transport for precendence and translation

Implemented in H323ListenerTCP.


Member Data Documentation

H323EndPoint& H323Listener::endpoint [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Mar 15 11:17:58 2005 for OpenH323 by  doxygen 1.4.0