Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
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#ifndef ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
8#define ZEPHYR_INCLUDE_NET_SOCKETUTILS_H_
9
10#include <zephyr/net/socket.h>
11
19const char *net_addr_str_find_port(const char *addr_str);
20
36int net_getaddrinfo_addr_str(const char *addr_str, const char *def_port,
37 const struct zsock_addrinfo *hints,
38 struct zsock_addrinfo **res);
39
40#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: socket.h:233