Zephyr API Documentation
3.7.0
A Scalable Open Source RTOS
|
BSD Socket service API. More...
#include <sys/types.h>
#include <zephyr/types.h>
#include <zephyr/net/socket.h>
#include <zephyr/syscalls/socket_service.h>
Go to the source code of this file.
Data Structures | |
struct | net_socket_service_event |
This struct contains information which socket triggered calls to the callback function. More... | |
struct | net_socket_service_desc |
Main structure holding socket service configuration information. More... | |
Macros | |
#define | NET_SOCKET_SERVICE_SYNC_DEFINE(name, work_q, cb, count) __z_net_socket_service_define(name, work_q, cb, count) |
Statically define a network socket service. | |
#define | NET_SOCKET_SERVICE_SYNC_DEFINE_STATIC(name, work_q, cb, count) __z_net_socket_service_define(name, work_q, cb, count, static) |
Statically define a network socket service in a private (static) scope. | |
Typedefs | |
typedef void(* | net_socket_service_cb_t) (const struct net_socket_service_desc *svc, void *user_data) |
Callback used while iterating over socket services. | |
Functions | |
int | net_socket_service_register (const struct net_socket_service_desc *service, struct zsock_pollfd *fds, int len, void *user_data) |
Register pollable sockets. | |
static int | net_socket_service_unregister (const struct net_socket_service_desc *service) |
Unregister pollable sockets. | |
void | net_socket_service_foreach (net_socket_service_cb_t cb, void *user_data) |
Go through all the socket services and call callback for each service. | |
BSD Socket service API.
API can be used to install a k_work that is called if there is data received to a socket.