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

BSD select support functions. More...

#include <zephyr/toolchain.h>
#include <zephyr/net/socket_types.h>
#include <zephyr/syscalls/socket_select.h>

Go to the source code of this file.

Data Structures

struct  zsock_fd_set
 Socket file descriptor set. More...
 

Macros

#define ZSOCK_FD_SETSIZE   (sizeof(((zsock_fd_set *)0)->bitset) * 8)
 Number of file descriptors which can be added to zsock_fd_set.
 

Typedefs

typedef struct zsock_fd_set zsock_fd_set
 Socket file descriptor set.
 

Functions

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.
 
void ZSOCK_FD_ZERO (zsock_fd_set *set)
 Initialize (clear) fd_set.
 
int ZSOCK_FD_ISSET (int fd, zsock_fd_set *set)
 Check whether socket is a member of fd_set.
 
void ZSOCK_FD_CLR (int fd, zsock_fd_set *set)
 Remove socket from fd_set.
 
void ZSOCK_FD_SET (int fd, zsock_fd_set *set)
 Add socket to fd_set.
 

Detailed Description

BSD select support functions.