supports_hostname


Description:

public abstract bool supports_hostname ()

Some proxy protocols expect to be passed a hostname, which they will resolve to an IP address themselves.

Others, like SOCKS4, do not allow this. This function will return false if this is implementing such a protocol. When false is returned, the caller should resolve the destination hostname first, and then pass a ProxyAddress containing the stringified IP address to connect or connect_async.

Parameters:

this

a Proxy

Returns:

true if hostname resolution is supported.