21 OF_ASSUME_NONNULL_BEGIN
31 int family, type, protocol;
32 struct sockaddr *address;
33 socklen_t addressLength;
66 socklen_t addressLength,
67 OFString *__autoreleasing OF_NONNULL *OF_NULLABLE host,
68 uint16_t *OF_NULLABLE port);
of_resolver_result_t *OF_NULLABLE *OF_NONNULL of_resolve_host(OFString *host, uint16_t port, int protocol)
Resolves the specified host.
Definition: resolver.m:57
void of_resolver_free(of_resolver_result_t *OF_NULLABLE *OF_NONNULL results)
Frees the results returned by of_resolve_host.
A struct representing one result from the resolver.
Definition: resolver.h:30
A class for handling strings.
Definition: OFString.h:91
void of_address_to_string_and_port(struct sockaddr *address, socklen_t addressLength, OFString *__autoreleasing OF_NONNULL *OF_NULLABLE host, uint16_t *OF_NULLABLE port)
Converts the specified address to a string and port pair.