ObjFW  Diff

Differences From Artifact [a855f12ad3]:

To Artifact [366ea735f5]:


32
33
34
35
36
37
38
39

40
41
42
43

44
45

46
47

48
49

50
51
52
53
54
55
56

57
58

59
60

61
62

63
64

65
66

67
68
69


70
71
72
73
74
75
76
32
33
34
35
36
37
38

39
40
41
42

43
44

45
46

47
48

49
50
51
52
53
54
55

56
57

58
59

60
61

62
63

64
65

66
67


68
69
70
71
72
73
74
75
76







-
+



-
+

-
+

-
+

-
+






-
+

-
+

-
+

-
+

-
+

-
+

-
-
+
+







@class OFDictionary OF_GENERIC(KeyType, ObjectType);
@class OFMutableDictionary OF_GENERIC(KeyType, ObjectType);
@class OFNumber;
@class OFTCPSocket;
@class OFUDPSocket;

/**
 * @enum of_dns_resolver_error_t OFDNSResolver.h ObjFW/OFDNSResolver.h
 * @enum OFDNSResolverErrorCode OFDNSResolver.h ObjFW/OFDNSResolver.h
 *
 * @brief An enum describing why resolving a host failed.
 */
typedef enum of_dns_resolver_error_t {
typedef enum OFDNSResolverErrorCode {
	/** An unknown error */
	OF_DNS_RESOLVER_ERROR_UNKNOWN,
	OFDNSResolverErrorCodeUnknown,
	/** The query timed out */
	OF_DNS_RESOLVER_ERROR_TIMEOUT,
	OFDNSResolverErrorCodeTimeout,
	/** The query was canceled */
	OF_DNS_RESOLVER_ERROR_CANCELED,
	OFDNSResolverErrorCodeCanceled,
	/**
	 * No result for the specified host with the specified type and class.
	 *
	 * This is only used in situations where this is an error, e.g. when
	 * trying to connect to a host.
	 */
	OF_DNS_RESOLVER_ERROR_NO_RESULT,
	OFDNSResolverErrorCodeNoResult,
	/** The server considered the query to be malformed */
	OF_DNS_RESOLVER_ERROR_SERVER_INVALID_FORMAT,
	OFDNSResolverErrorCodeServerInvalidFormat,
	/** The server was unable to process due to an internal error */
	OF_DNS_RESOLVER_ERROR_SERVER_FAILURE,
	OFDNSResolverErrorCodeServerFailure,
	/** The server returned an error that the domain does not exist */
	OF_DNS_RESOLVER_ERROR_SERVER_NAME_ERROR,
	OFDNSResolverErrorCodeServerNameError,
	/** The server does not have support for the requested query */
	OF_DNS_RESOLVER_ERROR_SERVER_NOT_IMPLEMENTED,
	OFDNSResolverErrorCodeServerNotImplemented,
	/** The server refused the query */
	OF_DNS_RESOLVER_ERROR_SERVER_REFUSED,
	OFDNSResolverErrorCodeServerRefused,
	/** There was no name server to query */
	OF_DNS_RESOLVER_ERROR_NO_NAME_SERVER
} of_dns_resolver_error_t;
	OFDNSResolverErrorCodeNoNameServer
} OFDNSResolverErrorCode;

/**
 * @protocol OFDNSResolverQueryDelegate OFDNSResolver.h ObjFW/OFDNSResolver.h
 *
 * @brief A delegate for performed DNS queries.
 */
@protocol OFDNSResolverQueryDelegate <OFObject>