Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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 Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2