OpenH323  1.18.0
Public Member Functions | Protected Member Functions
H323TransportAddress Class Reference

#include <transports.h>

List of all members.

Public Member Functions

 H323TransportAddress ()
 H323TransportAddress (const char *)
 H323TransportAddress (const PString &)
 H323TransportAddress (const H225_TransportAddress &)
 H323TransportAddress (const H245_TransportAddress &)
 H323TransportAddress (const PIPSocket::Address &, WORD)
BOOL SetPDU (H225_TransportAddress &pdu) const
BOOL SetPDU (H245_TransportAddress &pdu) const
BOOL IsEquivalent (const H323TransportAddress &address)
BOOL GetIpAddress (PIPSocket::Address &ip) const
BOOL GetIpAndPort (PIPSocket::Address &ip, WORD &port, const char *proto="tcp") const
PString GetHostName () const
H323ListenerCreateListener (H323EndPoint &endpoint) const
H323ListenerCreateCompatibleListener (H323EndPoint &endpoint) const
H323TransportCreateTransport (H323EndPoint &endpoint) const

Protected Member Functions

void Validate ()

Detailed Description

String representation of a transport address.


Constructor & Destructor Documentation

H323TransportAddress::H323TransportAddress ( const PIPSocket::Address &  ,
WORD   
)

Member Function Documentation

Create a listener compatible for this address type. This is similar to CreateListener() but does not use the TSAP specified in the H323Transport. For example an address of "#ip$10.0.0.1:1720#" would create a TCP listening socket that would be bound to the specific interface 10.0.0.1 but listens on a random OS allocated port number.

Parameters:
endpointEndpoint object for transport creation.

Create a listener based on this transport address.

For example an address of "#ip$10.0.0.1:1720#" would create a TCP listening socket that would be bound to the specific interface 10.0.0.1 and listens on port 1720. Note that the address "#ip$*:1720#" can be used to bind to INADDR_ANY.

Also note that if the address has a trailing '+' character then the socket will be bound using the REUSEADDR option.

Parameters:
endpointEndpoint object for transport creation.

Create a transport suitable for this address type.

Parameters:
endpointEndpoint object for transport creation.

Translate the transport address to a more human readable form. Returns the hostname if using IP.

BOOL H323TransportAddress::GetIpAddress ( PIPSocket::Address &  ip) const

Extract the ip address from transport address. Returns FALSE, if the address is not an IP transport address.

BOOL H323TransportAddress::GetIpAndPort ( PIPSocket::Address &  ip,
WORD &  port,
const char *  proto = "tcp" 
) const

Extract the ip address and port number from transport address. Returns FALSE, if the address is not an IP transport address.

Determine if the two transport addresses are equivalent.

void H323TransportAddress::Validate ( ) [protected]

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