class H323TransportTCP

This class represents a particular H323 transport using TCP/IP

Inheritance:


Public Methods

[more] H323TransportTCP ( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, BOOL listen = FALSE )
Create a new transport channel.
[more] ~H323TransportTCP ()
Destroy transport channel
[more]virtual BOOL SetRemoteAddress ( const H323TransportAddress & address )
Set default remote address to connect to.
[more]virtual BOOL Connect ()
Connect to the remote party
[more]virtual BOOL Close ()
Close the channel
[more]BOOL ReadPDU ( PBYTEArray & pdu )
Read a protocol data unit from the transport.
[more]BOOL WritePDU ( const PBYTEArray & pdu )
Write a protocol data unit from the transport.
[more]virtual H323Transport* CreateControlChannel ( H323Connection & connection )
Begin the opening of a control channel.
[more]virtual BOOL AcceptControlChannel ( H323Connection & connection )
Finish the opening of a control channel.
[more]BOOL IsListening () const
Indicate we are waiting from remote to connect back to us

Protected Methods

[more]virtual BOOL OnOpen ()
This callback is executed when the Open() function is called with open channels.


Inherited from H323TransportIP:

Public Methods

ovirtual H323TransportAddress GetLocalAddress() const
ovirtual H323TransportAddress GetRemoteAddress() const
ovirtual BOOL IsCompatibleTransport( const H225_TransportAddress & pdu ) const
ovirtual void SetUpTransportPDU( H225_TransportAddress & pdu, BOOL localTsap ) const
ovirtual void SetUpTransportPDU( H245_TransportAddress & pdu, unsigned tsap ) const


Inherited from H323Transport:

Public Methods

Construction

Operations

Signalling Channel

Control Channel

RAS Channel

Member variable access

Protected Fields

oPThread* thread
o Thread handling the transport


Documentation

This class represents a particular H323 transport using TCP/IP
o H323TransportTCP( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, BOOL listen = FALSE )
Create a new transport channel.
Parameters:
endpoint - H323 End Point object
binding - Local interface to use
listen - Flag for need to wait for remote to connect

o ~H323TransportTCP()
Destroy transport channel

ovirtual BOOL SetRemoteAddress( const H323TransportAddress & address )
Set default remote address to connect to. Note that this does not necessarily initiate a transport level connection, but only indicates where to connect to. The actual connection is made by the Connect() function.

ovirtual BOOL Connect()
Connect to the remote party

ovirtual BOOL Close()
Close the channel

oBOOL ReadPDU( PBYTEArray & pdu )
Read a protocol data unit from the transport. This will read using the transports mechanism for PDU boundaries, for example UDP is a single Read() call, while for TCP there is a TPKT header that indicates the size of the PDU.
Parameters:
pdu - PDU read from transport

oBOOL WritePDU( const PBYTEArray & pdu )
Write a protocol data unit from the transport. This will write using the transports mechanism for PDU boundaries, for example UDP is a single Write() call, while for TCP there is a TPKT header that indicates the size of the PDU.
Parameters:
pdu - PDU to write

ovirtual H323Transport* CreateControlChannel( H323Connection & connection )
Begin the opening of a control channel. This sets up the channel so that the remote endpoint can connect back to this endpoint.

ovirtual BOOL AcceptControlChannel( H323Connection & connection )
Finish the opening of a control channel. This waits for the connect backfrom the remote endpoint, completing the control channel open sequence.

oBOOL IsListening() const
Indicate we are waiting from remote to connect back to us

ovirtual BOOL OnOpen()
This callback is executed when the Open() function is called with open channels. It may be used by descendent channels to do any handshaking required by the protocol that channel embodies.

The default behaviour is to simply return TRUE.

Returns:
Returns TRUE if the protocol handshaking is successful.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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