Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
12#ifndef ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
13#define ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
14
15#include <zephyr/net/socket.h>
16
24const char *net_addr_str_find_port(const char *addr_str);
25
41int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
42 const struct zsock_addrinfo *hints,
43 struct zsock_addrinfo **res);
44
45#endif /* ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_ */
BSD Sockets compatible API definitions.
const char * net_addr_str_find_port(const char *addr_str)
Find port in addr:port string.
int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
Call getaddrinfo() on addr:port string.
Definition used when querying address information.
Definition socket.h:276