Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
socket_offload.h File Reference

Socket Offload Redirect API. More...

#include <net/net_ip.h>
#include <net/socket.h>

Go to the source code of this file.

Data Structures

struct  socket_dns_offload
 An offloaded Socket DNS API interface. More...
 

Functions

void socket_offload_dns_register (const struct socket_dns_offload *ops)
 Register an offloaded socket DNS API interface. More...
 
int socket_offload_getaddrinfo (const char *node, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
 
void socket_offload_freeaddrinfo (struct zsock_addrinfo *res)
 

Detailed Description

Socket Offload Redirect API.

Function Documentation

◆ socket_offload_dns_register()

void socket_offload_dns_register ( const struct socket_dns_offload ops)

Register an offloaded socket DNS API interface.

Parameters
opsA pointer to the offloaded socket DNS API interface.

◆ socket_offload_freeaddrinfo()

void socket_offload_freeaddrinfo ( struct zsock_addrinfo res)

◆ socket_offload_getaddrinfo()

int socket_offload_getaddrinfo ( const char *  node,
const char *  service,
const struct zsock_addrinfo hints,
struct zsock_addrinfo **  res 
)