Home
last modified time | relevance | path

Searched refs:rfds (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/vfs/test/
Dtest_vfs_select.c164 fd_set rfds; variable
165 FD_ZERO(&rfds);
166 FD_SET(uart_fd, &rfds);
177 int s = select(uart_fd + 1, &rfds, NULL, NULL, &tv);
179 TEST_ASSERT(FD_ISSET(uart_fd, &rfds));
180 TEST_ASSERT_UNLESS(FD_ISSET(socket_fd, &rfds));
188 FD_ZERO(&rfds);
189 FD_SET(uart_fd, &rfds);
190 FD_SET(socket_fd, &rfds);
194 s = select(MAX(uart_fd, socket_fd) + 1, &rfds, NULL, NULL, &tv);
[all …]
/hal_espressif-3.6.0/examples/system/select/main/
Dselect_example.c157 static void check_and_print(int fd, const fd_set *rfds, const char *src_msg) in check_and_print() argument
162 if (FD_ISSET(fd, rfds)) { in check_and_print()
176 fd_set rfds; in select_task() local
182 FD_ZERO(&rfds); in select_task()
183 FD_SET(uart_fd, &rfds); in select_task()
184 FD_SET(socket_fd, &rfds); in select_task()
186 s = select(MAX(uart_fd, socket_fd) + 1, &rfds, NULL, NULL, &tv); in select_task()
193 check_and_print(socket_fd, &rfds, "socket"); in select_task()
194 check_and_print(uart_fd, &rfds, "UART1"); in select_task()
/hal_espressif-3.6.0/examples/peripherals/uart/uart_select/main/
Duart_select_example_main.c50 fd_set rfds; in uart_select_task() local
56 FD_ZERO(&rfds); in uart_select_task()
57 FD_SET(fd, &rfds); in uart_select_task()
59 s = select(fd + 1, &rfds, NULL, NULL, &tv); in uart_select_task()
67 if (FD_ISSET(fd, &rfds)) { in uart_select_task()
/hal_espressif-3.6.0/examples/protocols/sockets/udp_multicast/main/
Dudp_multicast_example_main.c351 fd_set rfds; in mcast_example_task() local
352 FD_ZERO(&rfds); in mcast_example_task()
353 FD_SET(sock, &rfds); in mcast_example_task()
355 int s = select(sock + 1, &rfds, NULL, NULL, &tv); in mcast_example_task()
362 if (FD_ISSET(sock, &rfds)) { in mcast_example_task()
/hal_espressif-3.6.0/components/mdns/
Dmdns_networking_socket.c255 fd_set rfds; in sock_recv_task() local
256 FD_ZERO(&rfds); in sock_recv_task()
262 FD_SET(sock, &rfds); in sock_recv_task()
273 int s = select(max_sock + 1, &rfds, NULL, NULL, &tv); in sock_recv_task()
287 if (FD_ISSET(sock, &rfds)) { in sock_recv_task()