Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <posix/netdb.h>
Go to the source code of this file.
Functions | |
const char * | net_addr_str_find_port (const char *addr_str) |
Find port in addr:port string. More... | |
int | net_getaddrinfo_addr_str (const char *addr_str, const char *def_port, const struct addrinfo *hints, struct addrinfo **res) |
Call getaddrinfo() on addr:port string. More... | |
const char * net_addr_str_find_port | ( | const char * | addr_str | ) |
Find port in addr:port string.
addr_str | String of addr[:port] format |
int net_getaddrinfo_addr_str | ( | const char * | addr_str, |
const char * | def_port, | ||
const struct addrinfo * | hints, | ||
struct addrinfo ** | res | ||
) |
Call getaddrinfo() on addr:port string.
Convenience function to split addr[:port] string into address vs port components (or use default port number), and call getaddrinfo() on the result.
addr_str | String of addr[:port] format |
def_port | Default port number to use if addr_str doesn't contain it |
hints | getaddrinfo() hints |
res | Result of getaddrinfo() (freeaddrinfo() should be called on it as usual. |