Address resolution utility functions.
More...
|
| #define | NRF_HTONS(x) |
| | Host to network byte-orders on half word.
|
| |
| #define | NRF_HTONL(x) |
| | Host to network byte-orders on full word.
|
| |
| #define | NRF_NTOHS(x) |
| | Network to host byte-orders on half word.
|
| |
| #define | NRF_NTOHL(x) |
| | Network to host byte-orders on full word.
|
| |
| #define | nrf_htons(x) |
| | Convert byte order from host to network (short).
|
| |
| #define | nrf_htonl(x) |
| | Convert byte order from host to network (long).
|
| |
| #define | nrf_ntohs(x) |
| | Convert byte order from network to host (short).
|
| |
| #define | nrf_ntohl(x) |
| | Convert byte order from network to host (long).
|
| |
| #define | NRF_INET_ADDRSTRLEN 16 |
| | Maximum length of IPv4 in string form, including null-termination character.
|
| |
| #define | NRF_INET6_ADDRSTRLEN 46 |
| | Maximum length of IPv6 in string form, including null-termination character.
|
| |
| #define | NRF_AI_CANONNAME 0x2 |
| |
| #define | NRF_AI_NUMERICSERV 0x400 |
| |
| #define | NRF_AI_PDNSERV 0x1000 |
| |
|
| int | nrf_inet_pton (int af, const char *restrict src, void *restrict dst) |
| | Convert IPv4 and IPv6 addresses between binary and text form.
|
| |
| const char * | nrf_inet_ntop (int af, const void *restrict src, char *restrict dst, nrf_socklen_t size) |
| | Convert IPv4 and IPv6 addresses between binary and text form.
|
| |
| int | nrf_getaddrinfo (const char *restrict nodename, const char *restrict servname, const struct nrf_addrinfo *restrict hints, struct nrf_addrinfo **restrict res) |
| | Get address information.
|
| |
| void | nrf_freeaddrinfo (struct nrf_addrinfo *ai) |
| | Free address information returned by nrf_getaddrinfo().
|
| |
| int | nrf_getifaddrs (struct nrf_ifaddrs **ifa) |
| | Get interface address information.
|
| |
| void | nrf_freeifaddrs (struct nrf_ifaddrs *ifa) |
| | Free address information returned by nrf_getifaddrs().
|
| |
| int | nrf_setdnsaddr (int family, const void *in_addr, nrf_socklen_t in_size) |
| | Set or unset a fallback DNS address.
|
| |
| int | nrf_socket_data_enabled_set (bool enabled) |
| | Enable or disable data traffic through the socket interface.
|
| |
| bool | nrf_socket_data_enabled_get (void) |
| | Get the current data enabled state.
|
| |
Address resolution utility functions.