Differences From Artifact [5eef0c526a]:
- File
src/resolver.h
— part of check-in
[49b1989b63]
at
2014-01-26 22:38:28
on branch trunk
— Move resolving functionality to resolver.m
This is in preparation for UDP sockets, so that they can share the
resolving functionality with TCP sockets. (user: js, size: 1913) [annotate] [blame] [check-ins using]
To Artifact [a012300f05]:
- File src/resolver.h — part of check-in [44c595058b] at 2014-01-27 12:34:10 on branch trunk — of_address_to_string: Add a way to get the port (user: js, size: 2083) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
45 46 47 48 49 50 51 | * @return An array of results. The list is terminated by NULL and should be * free'd after use. */ extern of_resolver_result_t** of_resolve_host(OFString *host, uint16_t port, int protocol); /*! | | > > | | | 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 | * @return An array of results. The list is terminated by NULL and should be * free'd after use. */ extern of_resolver_result_t** of_resolve_host(OFString *host, uint16_t port, int protocol); /*! * @brief Converts the specified address to a string and port pair. * * @param address The address to convert to a string * @param addressLength The length of the address to convert to a string * @param port A pointer to an uint16_t which should be set to the port of the * address or NULL if the port is not needed * @return The address as a string */ extern OFString* of_address_to_string_and_port(struct sockaddr *address, socklen_t addressLength, uint16_t *port); /*! * @brief Frees the results returned by @ref of_resolve_host. * * @param results The results returned by @ref of_resolve_host */ extern void of_resolver_free(of_resolver_result_t **results); #ifdef __cplusplus } #endif |