Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
socket_offload.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Linaro Limited.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_H_
13#define ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_H_
14
15#include <net/net_ip.h>
16#include <net/socket.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
29 int (*getaddrinfo)(const char *node, const char *service,
30 const struct zsock_addrinfo *hints,
31 struct zsock_addrinfo **res);
33};
34
41
42int socket_offload_getaddrinfo(const char *node, const char *service,
43 const struct zsock_addrinfo *hints,
44 struct zsock_addrinfo **res);
45
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_H_ */
void
Definition: eswifi_shell.c:15
BSD Sockets compatible API definitions.
IPv6 and IPv4 definitions.
void socket_offload_freeaddrinfo(struct zsock_addrinfo *res)
void socket_offload_dns_register(const struct socket_dns_offload *ops)
Register an offloaded socket DNS API interface.
int socket_offload_getaddrinfo(const char *node, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
An offloaded Socket DNS API interface.
Definition: socket_offload.h:28
int(* getaddrinfo)(const char *node, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
Definition: socket_offload.h:29
void(* freeaddrinfo)(struct zsock_addrinfo *res)
Definition: socket_offload.h:32
Definition: socket.h:153