Obtain network stacks
Updated at:
Obtain the network stack type of the current network environment using the capabilities provided by the HttpdnsIpStackDetector class.
Return value definition
Obtain the current network stack. The return value includes four types:
For networks supporting dual-stack, the method returns
HttpdnsIPStackType.kHttpdnsIpDual.For networks supporting only the IPv4 protocol, the method returns
HttpdnsIPStackType.kHttpdnsIpv4Only.For networks supporting only the IPv6 protocol, the method returns
HttpdnsIPStackType.kHttpdnsIpv6Only.For networks with an unknown protocol, the method returns
HttpdnsIPStackType.kHttpdnsIpUnknown.
Interface definition
/**
* Returns the currently cached IP protocol stack type without performing detection
* @return HttpdnsIPStackType
*/
- (HttpdnsIPStackType)currentIpStack;Class
HttpdnsIpStackDetector
Note
Starting from version 3.2.0, the network stack interface is provided through HttpdnsIpStackDetector.
Is this page helpful?