H323TransportTCP Class Reference

#include <transports.h>

Inheritance diagram for H323TransportTCP:

H323TransportIP H323Transport

List of all members.

Public Member Functions

 H323TransportTCP (H323EndPoint &endpoint, PIPSocket::Address binding=PIPSocket::GetDefaultIpAny(), BOOL listen=FALSE)
 ~H323TransportTCP ()
virtual BOOL SetRemoteAddress (const H323TransportAddress &address)
virtual BOOL Connect ()
virtual BOOL Close ()
BOOL ReadPDU (PBYTEArray &pdu)
BOOL WritePDU (const PBYTEArray &pdu)
virtual H323TransportCreateControlChannel (H323Connection &connection)
virtual BOOL AcceptControlChannel (H323Connection &connection)
virtual BOOL IsListening () const

Protected Member Functions

virtual BOOL OnOpen ()

Protected Attributes

PTCPSocket * h245listener


Detailed Description

This class represents a particular H323 transport using TCP/IP.

Constructor & Destructor Documentation

H323TransportTCP::H323TransportTCP ( H323EndPoint endpoint,
PIPSocket::Address  binding = PIPSocket::GetDefaultIpAny(),
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

H323TransportTCP::~H323TransportTCP (  ) 

Destroy transport channel.


Member Function Documentation

virtual BOOL H323TransportTCP::AcceptControlChannel ( H323Connection connection  )  [virtual]

Finish the opening of a control channel. This waits for the connect backfrom the remote endpoint, completing the control channel open sequence.

Reimplemented from H323Transport.

virtual BOOL H323TransportTCP::Close (  )  [virtual]

Close the channel.

Reimplemented from H323Transport.

virtual BOOL H323TransportTCP::Connect (  )  [virtual]

Connect to the remote party.

Implements H323Transport.

virtual H323Transport* H323TransportTCP::CreateControlChannel ( H323Connection connection  )  [virtual]

Begin the opening of a control channel. This sets up the channel so that the remote endpoint can connect back to this endpoint.

Reimplemented from H323Transport.

virtual BOOL H323TransportTCP::IsListening (  )  const [virtual]

Indicate we are waiting from remote to connect back to us.

virtual BOOL H323TransportTCP::OnOpen (  )  [protected, virtual]

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.

BOOL H323TransportTCP::ReadPDU ( PBYTEArray &  pdu  )  [virtual]

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

Implements H323Transport.

virtual BOOL H323TransportTCP::SetRemoteAddress ( const H323TransportAddress address  )  [virtual]

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.

Implements H323Transport.

BOOL H323TransportTCP::WritePDU ( const PBYTEArray &  pdu  )  [virtual]

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

Implements H323Transport.


Member Data Documentation

PTCPSocket* H323TransportTCP::h245listener [protected]


The documentation for this class was generated from the following file:

Generated on Fri Aug 21 18:15:30 2009 for OpenH323 by  doxygen 1.5.9