class H323TransportAddress

String representation of a transport address

Inheritance:


Public Methods

[more]BOOL IsEquivalent ( const H323TransportAddress & address )
Determine if the two transport addresses are equivalent
[more]BOOL GetIpAddress ( PIPSocket::Address & ip ) const
Extract the ip address from transport address.
[more]BOOL GetIpAndPort ( PIPSocket::Address & ip, WORD & port, const char* proto = "tcp" ) const
Extract the ip address and port number from transport address.
[more]PString GetHostName () const
Translate the transport address to a more human readable form.
[more]H323Listener* CreateListener ( H323EndPoint & endpoint ) const
Create a listener based on this transport address.
[more]H323Listener* CreateCompatibleListener ( H323EndPoint & endpoint ) const
Create a listener compatible for this address type.
[more]H323Transport* CreateTransport ( H323EndPoint & endpoint ) const
Create a transport suitable for this address type.


Documentation

String representation of a transport address
oBOOL IsEquivalent( const H323TransportAddress & address )
Determine if the two transport addresses are equivalent

oBOOL GetIpAddress( PIPSocket::Address & ip ) const
Extract the ip address from transport address. Returns FALSE, if the address is not an IP transport address.

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

oPString GetHostName() const
Translate the transport address to a more human readable form. Returns the hostname if using IP.

oH323Listener* CreateListener( H323EndPoint & endpoint ) const
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:
endpoint - Endpoint object for transport creation.

oH323Listener* CreateCompatibleListener( H323EndPoint & endpoint ) const
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:
endpoint - Endpoint object for transport creation.

oH323Transport* CreateTransport( H323EndPoint & endpoint ) const
Create a transport suitable for this address type.
Parameters:
endpoint - Endpoint object for transport creation.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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