ObjFW
Loading...
Searching...
No Matches
OFDNSResolverSettings.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This file is part of ObjFW. It may be distributed under the terms of the
7 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8 * the packaging of this file.
9 *
10 * Alternatively, it may be distributed under the terms of the GNU General
11 * Public License, either version 2 or 3, which can be found in the file
12 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13 * file.
14 */
15
16#import "OFObject.h"
17
18OF_ASSUME_NONNULL_BEGIN
19
20@class OFArray OF_GENERIC(ObjectType);
21@class OFDate;
22@class OFDictionary OF_GENERIC(KeyType, ObjectType);
23
24@interface OFDNSResolverSettings: OFObject <OFCopying>
25{
26@public
27 OFDictionary OF_GENERIC(OFString *, OFArray OF_GENERIC(OFString *) *)
28 *_staticHosts;
29 OFArray OF_GENERIC(OFString *) *_nameServers;
30 OFString *_Nullable _localDomain;
31 OFArray OF_GENERIC(OFString *) *_searchDomains;
32 OFTimeInterval _timeout;
33 unsigned int _maxAttempts, _minNumberOfDotsInAbsoluteName;
34 bool _forcesTCP;
35 OFTimeInterval _configReloadInterval;
36@protected
37 OFDate *_lastConfigReload;
38}
39
40- (void)reload;
41@end
42
43OF_ASSUME_NONNULL_END
double OFTimeInterval
A time interval in seconds.
Definition OFObject.h:150
An abstract class for storing objects in an array.
Definition OFArray.h:105
A class for storing, accessing and comparing dates.
Definition OFDate.h:30
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:80
The root class for all other classes inside ObjFW.
Definition OFObject.h:688
A class for handling strings.
Definition OFString.h:135
A protocol for the creation of copies.
Definition OFObject.h:1346