class H323TransportUDP: public H323TransportIP

This class represents a particular H323 transport using UDP/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
[more] H323TransportUDP ( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, WORD port = 0, BOOL promiscuous = FALSE )
Create a new 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 void SetPromiscuous ( BOOL promiscuous )
Set read to promiscuous mode.
[more]virtual BOOL ReadPDU ( PBYTEArray & pdu )
Read a protocol data unit from the transport.
[more]virtual BOOL WritePDU ( const PBYTEArray & pdu )
Write a protocol data unit from the transport.
[more]virtual BOOL DiscoverGatekeeper ( H323Gatekeeper & gk, H323RasPDU & pdu, const H323TransportAddress & address )
Discover a Gatekeeper on the local network.

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

Construction

Operations

Signalling Channel

Control Channel

RAS Channel

Member variable access

Protected Fields

oPThread* thread
o


Documentation

This class represents a particular H323 transport using UDP/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.

o H323TransportUDP( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, WORD port = 0, BOOL promiscuous = FALSE )
Create a new transport channel.
Parameters:
endpoint - H323 End Point object
binding - Local interface to listen on
port - Local port to listen on
promiscuous - Initial state of flag

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 void SetPromiscuous( BOOL promiscuous )
Set read to promiscuous mode. Normally only reads from the specifed remote address are accepted. This flag allows the remote address to be automatically set to whatever the sender of the last received message was.

Default behaviour does nothing.

ovirtual BOOL 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

ovirtual BOOL 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 BOOL DiscoverGatekeeper( H323Gatekeeper & gk, H323RasPDU & pdu, const H323TransportAddress & address )
Discover a Gatekeeper on the local network. This locates a gatekeeper on the network and associates this transport object with packet exchange with that gatekeeper. This broadcasts a UDP packet on the local network to find the gatekeeper's IP address.
Parameters:
gk - Gatekeeper to set on discovery.
pdu - GatekeeperRequest PDU
address - Address of gatekeeper (if present)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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