Zephyr API 3.6.99
|
Main structure holding socket service configuration information. More...
#include <socket_service.h>
Data Fields | |
const char * | owner |
Owner name. | |
struct k_work_q * | work_q |
Workqueue where the work is submitted. | |
struct net_socket_service_event * | pev |
Pointer to the list of services that we are listening. | |
int | pev_len |
Length of the pollable socket array for this service. | |
int * | idx |
Where are my pollfd entries in the global list. | |
Main structure holding socket service configuration information.
The k_work item is created so that when there is data coming to those fds, the k_work callback is then called. The workqueue can be set NULL in which case system workqueue is used. The service descriptor should be created at built time, and then used as a parameter to register the sockets to be monitored. User should create needed sockets and then setup the poll struct and then register the sockets to be monitored at runtime.
int* net_socket_service_desc::idx |
Where are my pollfd entries in the global list.
const char* net_socket_service_desc::owner |
Owner name.
This can be used in debugging to see who has registered this service.
struct net_socket_service_event* net_socket_service_desc::pev |
Pointer to the list of services that we are listening.
int net_socket_service_desc::pev_len |
Length of the pollable socket array for this service.
struct k_work_q* net_socket_service_desc::work_q |
Workqueue where the work is submitted.