H323TransactionServer Class Reference

#include <h323trans.h>

Inheritance diagram for H323TransactionServer:

H323GatekeeperServer List of all members.

Public Member Functions

virtual WORD GetDefaultUdpPort ()=0
Access functions
H323EndPointGetOwnerEndPoint () const
Protocol Handler Operations
PBoolean AddListeners (const H323TransportAddressArray &ifaces)
PBoolean AddListener (const H323TransportAddress &interfaceName)
PBoolean AddListener (H323Transport *transport)
PBoolean AddListener (H323Transactor *listener)
virtual H323TransactorCreateListener (H323Transport *transport)=0
PBoolean RemoveListener (H323Transactor *listener)
PBoolean SetUpCallSignalAddresses (H225_ArrayOf_TransportAddress &addresses)

Protected Member Functions

 PLIST (ListenerList, H323Transactor)

Protected Attributes

H323EndPointownerEndPoint
PThread * monitorThread
PSyncPoint monitorExit
PMutex mutex
ListenerList listeners

Constructor & Destructor Documentation

H323TransactionServer::H323TransactionServer ( H323EndPoint endpoint  ) 

Create a new gatekeeper.

H323TransactionServer::~H323TransactionServer (  ) 

Destroy gatekeeper.

H323TransactionServer::H323TransactionServer ( H323EndPoint endpoint  ) 

Create a new gatekeeper.

H323TransactionServer::~H323TransactionServer (  ) 

Destroy gatekeeper.


Member Function Documentation

virtual WORD H323TransactionServer::GetDefaultUdpPort (  )  [pure virtual]

Implemented in H323GatekeeperServer.

H323EndPoint& H323TransactionServer::GetOwnerEndPoint (  )  const [inline]

Get the owner endpoint.

PBoolean H323TransactionServer::AddListeners ( const H323TransportAddressArray &  ifaces  ) 

Add listeners to the transaction server. If a listener already exists on the interface specified in the list then it is ignored. If a listener does not yet exist a new one is created and if a listener is running that is not in the list then it is stopped and removed.

If the array is empty then the string "*" is assumed which will listen on the standard UDP port on INADDR_ANY.

Returns PTrue if at least one interface was successfully started.

Parameters:
ifaces  Interfaces to listen on.

PBoolean H323TransactionServer::AddListener ( const H323TransportAddress interfaceName  ) 

Add a gatekeeper listener to this gatekeeper server given the transport address for the local interface.

PBoolean H323TransactionServer::AddListener ( H323Transport transport  ) 

Add a gatekeeper listener to this gatekeeper server given the transport. Note that the transport is then owned by the listener and will be deleted automatically when the listener is destroyed. Note also the transport is deleted if this function returns PFalse and no listener was created.

PBoolean H323TransactionServer::AddListener ( H323Transactor listener  ) 

Add a gatekeeper listener to this gatekeeper server. Note that the gatekeeper listener is then owned by the gatekeeper server and will be deleted automatically when the listener is removed. Note also the listener is deleted if this function returns PFalse and the listener was not used.

virtual H323Transactor* H323TransactionServer::CreateListener ( H323Transport transport  )  [pure virtual]

Create a new H323GatkeeperListener. The user woiuld not usually use this function as it is used internally by the server when new listeners are added by H323TransportAddress.

However, a user may override this function to create objects that are user defined descendants of H323GatekeeperListener so the user can maintain extra information on a interface by interface basis.

Parameters:
transport  Transport for listener

Implemented in H323GatekeeperServer.

PBoolean H323TransactionServer::RemoveListener ( H323Transactor listener  ) 

Remove a gatekeeper listener from this gatekeeper server. The gatekeeper listener is automatically deleted.

PBoolean H323TransactionServer::SetUpCallSignalAddresses ( H225_ArrayOf_TransportAddress addresses  ) 

H323TransactionServer::PLIST ( ListenerList  ,
H323Transactor   
) [protected]


Member Data Documentation

H323EndPoint& H323TransactionServer::ownerEndPoint [protected]

PThread* H323TransactionServer::monitorThread [protected]

Reimplemented in H323GatekeeperServer.

PSyncPoint H323TransactionServer::monitorExit [protected]

Reimplemented in H323GatekeeperServer.

PMutex H323TransactionServer::mutex [protected]

Reimplemented in H323GatekeeperServer.

ListenerList H323TransactionServer::listeners [protected]

Reimplemented in H323GatekeeperServer.


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 11:49:33 2008 for OPAL by  doxygen 1.5.1