#include <transports.h>
Inheritance diagram for H323TransportUDP:
Public Member Functions | |
H323TransportUDP (H323EndPoint &endpoint, PIPSocket::Address binding=PIPSocket::GetDefaultIpAny(), WORD localPort=0, WORD remotePort=0) | |
~H323TransportUDP () | |
virtual BOOL | SetRemoteAddress (const H323TransportAddress &address) |
virtual BOOL | Connect () |
virtual void | SetPromiscuous (PromisciousModes promiscuous) |
virtual H323TransportAddress | GetLastReceivedAddress () const |
virtual BOOL | ReadPDU (PBYTEArray &pdu) |
virtual BOOL | WritePDU (const PBYTEArray &pdu) |
virtual BOOL | DiscoverGatekeeper (H323Gatekeeper &gk, H323RasPDU &pdu, const H323TransportAddress &address) |
virtual H323TransportAddress | GetLocalAddress () const |
Protected Attributes | |
PromisciousModes | promiscuousReads |
H323TransportAddress | lastReceivedAddress |
PIPSocket::Address | lastReceivedInterface |
WORD | interfacePort |
|
Create a new transport channel.
|
|
|
|
Connect to the remote party. Implements H323Transport. |
|
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.
Reimplemented from H323Transport. |
|
Get the transport address of the last received PDU. Default behaviour returns the lastReceivedAddress member variable. Reimplemented from H323Transport. |
|
Get the transport address of the local endpoint. Reimplemented from H323TransportIP. |
|
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.
Implements H323Transport. |
|
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. Reimplemented from H323Transport. |
|
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. |
|
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.
Implements H323Transport. |
|
|
|
|
|
|
|
|