Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_socket_service_desc Struct Reference

Main structure holding socket service configuration information. More...

#include <socket_service.h>

Data Fields

const char * owner
 Owner name.
 
struct k_work_qwork_q
 Workqueue where the work is submitted.
 
struct net_socket_service_eventpev
 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.
 

Detailed Description

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.

Field Documentation

◆ idx

int* net_socket_service_desc::idx

Where are my pollfd entries in the global list.

◆ owner

const char* net_socket_service_desc::owner

Owner name.

This can be used in debugging to see who has registered this service.

◆ pev

struct net_socket_service_event* net_socket_service_desc::pev

Pointer to the list of services that we are listening.

◆ pev_len

int net_socket_service_desc::pev_len

Length of the pollable socket array for this service.

◆ work_q

struct k_work_q* net_socket_service_desc::work_q

Workqueue where the work is submitted.


The documentation for this struct was generated from the following file: