class H323TransportUDP

This class represents a particular H323 transport using UDP/IP

Inheritance:


Public Methods

[more] H323TransportUDP ( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, WORD localPort = 0, WORD remotePort = 0 )
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 ( PromisciousModes promiscuous )
Set read to promiscuous mode.
[more]virtual H323TransportAddress GetLastReceivedAddress () const
Get the transport address of the last received PDU.
[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.


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 UDP/IP
o H323TransportUDP( H323EndPoint & endpoint, PIPSocket::Address binding = INADDR_ANY, WORD localPort = 0, WORD remotePort = 0 )
Create a new transport channel.
Parameters:
endpoint - H323 End Point object
binding - Local interface to listen on
localPort - Local port to listen on
remotePort - Remote port to connect on

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( PromisciousModes promiscuous )
Set read to promiscuous mode. Normally only reads from the specifed remote address are accepted. This flag allows packets to be accepted from any remote, provided the underlying protocol can do so.

The Read() call may optionally set the remote address automatically to whatever the sender host of the last received message was.

Default behaviour sets the internal flag, so that Read() operates as described.

ovirtual H323TransportAddress GetLastReceivedAddress() const
Get the transport address of the last received PDU.

Default behaviour returns the lastReceivedAddress member variable.

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++.