#include <transports.h>
Inheritance diagram for H323Listener:
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 H323Transport * | Accept (const PTimeInterval &timeout)=0 |
virtual H323TransportAddress | GetTransportAddress () const =0 |
virtual BOOL | SetUpTransportPDU (H245_TransportAddress &pdu, const H323Transport &associatedTransport)=0 |
Protected Attributes | |
H323EndPoint & | endpoint |
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.
H323Listener::H323Listener | ( | H323EndPoint & | endpoint | ) |
Create a new listener.
endpoint | Endpoint instance for channel |
virtual H323Transport* H323Listener::Accept | ( | const PTimeInterval & | timeout | ) | [pure virtual] |
Accept a new incoming transport.
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.
pdu | Transport addresses listening on |
associatedTransport | Associated transport for precendence and translation |
Implemented in H323ListenerTCP.
H323EndPoint& H323Listener::endpoint [protected] |