@@ -25,11 +25,11 @@ * @brief An exception indicating that resolving a host failed. */ @interface OFResolveHostFailedException: OFException { OFString *_host; - of_socket_address_family_t _addressFamily; + OFSocketAddressFamily _addressFamily; of_dns_resolver_error_t _error; } /** * @brief The host which could not be resolved. @@ -37,11 +37,11 @@ @property (readonly, nonatomic) OFString *host; /** * @brief The address family for which the host could not be resolved. */ -@property (readonly, nonatomic) of_socket_address_family_t addressFamily; +@property (readonly, nonatomic) OFSocketAddressFamily addressFamily; /** * @brief The error from the resolver. */ @property (readonly, nonatomic) of_dns_resolver_error_t error; @@ -54,11 +54,11 @@ * resolved * @param error The error from the resolver * @return A new, autoreleased address translation failed exception */ + (instancetype)exceptionWithHost: (OFString *)host - addressFamily: (of_socket_address_family_t)addressFamily + addressFamily: (OFSocketAddressFamily)addressFamily error: (of_dns_resolver_error_t)error; /** * @brief Initializes an already allocated resolve host failed exception. * @@ -67,10 +67,10 @@ * resolved * @param error The error from the resolver * @return An initialized address translation failed exception */ - (instancetype)initWithHost: (OFString *)host - addressFamily: (of_socket_address_family_t)addressFamily + addressFamily: (OFSocketAddressFamily)addressFamily error: (of_dns_resolver_error_t)error; @end OF_ASSUME_NONNULL_END