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

29 lines
576 B
Objective-C

//
// HttpDnsLocker.h
// NewHttpDNS
//
// 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 */