Differences From Artifact [2431bf7b16]:
- File
src/socket.h
— part of check-in
[8555d64ee6]
at
2018-09-10 20:44:40
on branch trunk
— OFDNSResolver: Method to resolve host to addresses
This provides more convenience when the goal is to connect a socket and
provides functionality similar to getaddrinfo().No support for resolving CNAMEs yet - this will be the next step. (user: js, size: 5249) [annotate] [blame] [check-ins using]
To Artifact [949bb8ad8d]:
- File
src/socket.h
— part of check-in
[6e9ee122eb]
at
2018-10-07 02:06:46
on branch trunk
— Remove resolver.m
Instead, OFDNSResolver is used for everything now. (user: js, size: 5555) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
203 204 205 206 207 208 209 210 211 212 213 214 |
* the address family used.
*
* @param address The address on which to set the port
* @param port The port to set on the address
*/
extern void of_socket_address_set_port(of_socket_address_t *_Nonnull address,
uint16_t port);
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
| > > > > > > > > > > | 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
* the address family used.
*
* @param address The address on which to set the port
* @param port The port to set on the address
*/
extern void of_socket_address_set_port(of_socket_address_t *_Nonnull address,
uint16_t port);
/*!
* @brief Returns the port of the specified of_socket_address_t, independent of
* the address family used.
*
* @param address The address on which to get the port
* @return The port of the address
*/
extern uint16_t of_socket_address_get_port(
const of_socket_address_t *_Nonnull address);
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
|