Using Secure Gateway Hosts

# Hosts from Profile

The method ClientIfc::getHostNames returns a list of Secure Gateway host names found in the current system's AnyConnect profile. If no profile is available, an empty list is returned.

# Default Connection Host

The method ClientIfc::getDefaultHostName returns the default Host name from user preferences. Even if no profile exists on the system, a host can still be returned here. This method returns the host last connected to (via ClientIfc::connect method).

If there is no preference containing the host last connected to, this method returns the first host found in an AnyConnect profile (if any).

# Host from a Web launch

The method ClientIfc::deliverWebLaunchHostCB is useful when the connection to the secure gateway has been established as part of a web-launch of the VPN tunnel.

If the client application wants to be notified of the secure gateway to which the VPN has been established, this method should be overridden.

If the client application is started and a tunnel is already active, this method also delivers the name of the secure gateway host.