Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
socket_select.h File Reference

BSD select support functions. More...

#include <time.h>
#include <zephyr/toolchain.h>
#include <zephyr/net/socket_types.h>
#include <zephyr/sys/fdtable.h>

Go to the source code of this file.

Macros

#define ZSOCK_FD_SETSIZE   ZVFS_FD_SETSIZE
 Number of file descriptors which can be added to zsock_fd_set.
 

Typedefs

typedef struct zvfs_fd_set zsock_fd_set
 Socket file descriptor set.
 

Functions

static int zsock_select (int nfds, zsock_fd_set *readfds, zsock_fd_set *writefds, zsock_fd_set *exceptfds, struct zsock_timeval *timeout)
 Legacy function to poll multiple sockets for events.
 
static void ZSOCK_FD_ZERO (zsock_fd_set *set)
 Initialize (clear) fd_set.
 
static int ZSOCK_FD_ISSET (int fd, zsock_fd_set *set)
 Check whether socket is a member of fd_set.
 
static void ZSOCK_FD_CLR (int fd, zsock_fd_set *set)
 Remove socket from fd_set.
 
static void ZSOCK_FD_SET (int fd, zsock_fd_set *set)
 Add socket to fd_set.
 

Detailed Description

BSD select support functions.