Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
socket_poll.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
8#define ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
9
10#include <zephyr/sys/fdtable.h>
11
12/* Setting for pollfd to avoid circular inclusion */
13
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifdef __DOXYGEN__
32 int fd;
33 short events;
34 short revents;
35};
36#else
37#define zsock_pollfd zvfs_pollfd
38#endif
39
40#ifdef __cplusplus
41}
42#endif
43
48#endif /* ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_ */
Definition of the monitored socket/file descriptor.
Definition socket_poll.h:31
short events
Requested events.
Definition socket_poll.h:33
int fd
Socket descriptor.
Definition socket_poll.h:32
short revents
Returned events.
Definition socket_poll.h:34