Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
socketutils.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifdef CONFIG_NET_SOCKETS_POSIX_NAMES
8#include <net/socket.h>
9#else
10#include <posix/netdb.h>
11#endif
12
20const char *net_addr_str_find_port(const char *addr_str);
21
37int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
38 const struct addrinfo *hints,
39 struct addrinfo **res);
BSD Sockets compatible API definitions.
#define addrinfo
Definition: netdb.h:15
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.
const char * net_addr_str_find_port(const char *addr_str)
Find port in addr:port string.