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
20
const
char
*
net_addr_str_find_port
(
const
char
*addr_str);
21
37
int
net_getaddrinfo_addr_str
(
const
char
*addr_str,
const
char
*def_port,
38
const
struct
addrinfo
*hints,
39
struct
addrinfo
**res);
socket.h
BSD Sockets compatible API definitions.
netdb.h
addrinfo
#define addrinfo
Definition:
netdb.h:15
net_getaddrinfo_addr_str
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.
net_addr_str_find_port
const char * net_addr_str_find_port(const char *addr_str)
Find port in addr:port string.
include
net
socketutils.h
Generated on Sun Oct 9 2022 09:21:57 for Zephyr API Documentation by
1.9.4