Files
waf-platform/HttpDNSSDK/sdk/ios/NewHttpDNS/IpStack/HttpdnsIpStackDetector.h
2026-03-05 02:44:43 +08:00

51 lines
967 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HttpdnsIpStackDetector.h
// NewHttpDNS
//
// Created by xuyecan on 2025/3/16.
// Copyright © 2025 trustapp.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* IP 协议栈类<E6A088><E7B1BB>?
*/
typedef enum {
kHttpdnsIpUnknown = 0, // 未知协议<E58D8F><E8AEAE>?
kHttpdnsIpv4Only = 1, // IPv4-only
kHttpdnsIpv6Only = 2, // IPv6-only
kHttpdnsIpDual = 3 // 双栈
} HttpdnsIPStackType;
@interface HttpdnsIpStackDetector : NSObject
/**
* 返回HttpdnsIpStackDetector的共享实<E4BAAB><E5AE9E>?
* @return HttpdnsIpStackDetector实例
*/
+ (instancetype)sharedInstance;
/**
* 返回当前缓存的IP协议栈类型不执行检<E8A18C><E6A380>?
* @return HttpdnsIPStackType
*/
- (HttpdnsIPStackType)currentIpStack;
/**
* 返回当前是否是IPv6-only网络
* @return BOOL
*/
- (BOOL)isIpv6OnlyNetwork;
/**
* 强制重新检测IP协议栈类<E6A088><E7B1BB>?
*/
- (void)redetectIpStack;
@end
NS_ASSUME_NONNULL_END