Zephyr Project API  3.2.0
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#ifndef ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
8#define ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
9
10#ifdef CONFIG_NET_SOCKETS_POSIX_NAMES
11#include <zephyr/net/socket.h>
12#else
13#include <zephyr/posix/netdb.h>
14#endif
15
23const char *net_addr_str_find_port(const char *addr_str);
24
40int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
41 const struct addrinfo *hints,
42 struct addrinfo **res);
43
44#endif /* ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_ */
#define addrinfo
Definition: socket.h:851
BSD Sockets compatible API definitions.
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.