Lines Matching refs:read_fds
76 static void read_tcp_data(ares_channel channel, fd_set *read_fds,
78 static void read_udp_packets(ares_channel channel, fd_set *read_fds,
145 fd_set *read_fds, ares_socket_t read_fd,
151 read_tcp_data(channel, read_fds, read_fd, &now);
152 read_udp_packets(channel, read_fds, read_fd, &now);
160 void ares_process(ares_channel channel, fd_set *read_fds, fd_set *write_fds)
162 processfds(channel, read_fds, ARES_SOCKET_BAD, write_fds, ARES_SOCKET_BAD);
331 static void read_tcp_data(ares_channel channel, fd_set *read_fds,
338 if(!read_fds && (read_fd == ARES_SOCKET_BAD))
344 /* Make sure the server has a socket and is selected in read_fds. */
349 if(read_fds) {
350 if(!FD_ISSET(server->tcp_socket, read_fds))
358 if(read_fds)
364 FD_CLR(server->tcp_socket, read_fds);
427 static void read_udp_packets(ares_channel channel, fd_set *read_fds,
443 if(!read_fds && (read_fd == ARES_SOCKET_BAD))
449 /* Make sure the server has a socket and is selected in read_fds. */
455 if(read_fds) {
456 if(!FD_ISSET(server->udp_socket, read_fds))
464 if(read_fds)
470 FD_CLR(server->udp_socket, read_fds);