Searched refs:rfds (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.6.0/components/vfs/test/ |
D | test_vfs_select.c | 164 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/ |
D | select_example.c | 157 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/ |
D | uart_select_example_main.c | 50 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/ |
D | udp_multicast_example_main.c | 351 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/ |
D | mdns_networking_socket.c | 255 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()
|