Files
youle_app_ios/Pods/HappyDNS/HappyDNS/Dns/QNDnsUdpResolver.h

48 lines
1.6 KiB
Objective-C
Raw 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.
//
// QNDnsServer.h
// Doh
//
// Created by yangsen on 2021/7/20.
//
#import "QNDnsResolver.h"
NS_ASSUME_NONNULL_BEGIN
@interface QNDnsUdpResolver : QNDnsResolver
/// 构造函数
/// @param serverIP 指定 dns local server1. eg:114.114.114.114
+ (instancetype)resolverWithServerIP:(NSString *)serverIP;
/// 构造函数
/// @param serverIP 指定 dns local server1. eg:114.114.114.114
/// @param recordType 记录类型 egkQNTypeA
/// @param timeout 超时时间
+ (instancetype)resolverWithServerIP:(NSString *)serverIP
recordType:(int)recordType
timeout:(int)timeout;
/// 构造函数
/// @param serverIPs 指定多个 dns local server同时进行 dns 解析,当第一个有效数据返回时结束,或均为解析到数据时结束. eg:@[@"8.8.8.8"]
/// @param recordType 记录类型 egkQNTypeA
/// @param timeout 超时时间
+ (instancetype)resolverWithServerIPs:(NSArray <NSString *> *)serverIPs
recordType:(int)recordType
timeout:(int)timeout;
/// 构造函数
/// @param serverIPs 指定多个 dns local server同时进行 dns 解析,当第一个有效数据返回时结束,或均为解析到数据时结束. eg:@[@"8.8.8.8"]
/// @param recordType 记录类型 egkQNTypeA
/// @param queue 多个 udp 包所在的 queue
/// @param timeout 超时时间
+ (instancetype)resolverWithServerIPs:(NSArray <NSString *> *)serverIPs
recordType:(int)recordType
queue:(dispatch_queue_t _Nullable)queue
timeout:(int)timeout;
@end
NS_ASSUME_NONNULL_END