29 lines
578 B
Objective-C
29 lines
578 B
Objective-C
//
|
|
// HttpDnsLocker.h
|
|
// TrustHttpDNS
|
|
//
|
|
// Created by 王贇 on 2023/8/16.
|
|
// Copyright © 2023 trustapp.com. All rights reserved.
|
|
//
|
|
|
|
#ifndef HttpDnsLocker_h
|
|
#define HttpDnsLocker_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "HttpdnsRequest.h"
|
|
|
|
@interface HttpDnsLocker : NSObject
|
|
|
|
+ (instancetype)sharedInstance;
|
|
|
|
- (void)lock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
|
|
|
- (BOOL)tryLock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
|
|
|
- (void)unlock:(NSString *)host queryType:(HttpdnsQueryIPType)queryType;
|
|
|
|
@end
|
|
|
|
|
|
#endif /* HttpDnsLocker_h */
|