Lines Matching refs:rfds
188 static int udp_receive_and_reply(fd_set *rfds, int fd_recv, int fd_send, in udp_receive_and_reply() argument
192 if (FD_ISSET(fd_recv, rfds)) { in udp_receive_and_reply()
216 static int tcp_receive_and_reply(fd_set *rfds, fd_set *errfds, in tcp_receive_and_reply() argument
224 if (FD_ISSET(fd_recv, rfds)) { in tcp_receive_and_reply()
384 fd_set rfds, errfds; in main() local
516 FD_ZERO(&rfds); in main()
517 FD_SET(fd4, &rfds); in main()
518 FD_SET(fd6, &rfds); in main()
519 FD_SET(fd4m, &rfds); in main()
520 FD_SET(fd6m, &rfds); in main()
521 FD_SET(tcp4, &rfds); in main()
522 FD_SET(tcp6, &rfds); in main()
531 FD_SET(accepted4, &rfds); in main()
536 FD_SET(accepted6, &rfds); in main()
541 ret = select(fd + 1, &rfds, NULL, in main()
559 FD_SET(accepted4, &rfds); in main()
572 FD_SET(accepted6, &rfds); in main()
579 if (udp_receive_and_reply(&rfds, fd4, fd4, buf, sizeof(buf), in main()
584 if (udp_receive_and_reply(&rfds, fd6, fd6, buf, sizeof(buf), in main()
589 if (udp_receive_and_reply(&rfds, fd4m, fd4, buf, sizeof(buf), in main()
594 if (udp_receive_and_reply(&rfds, fd6m, fd6, buf, sizeof(buf), in main()
599 ret = tcp_receive_and_reply(&rfds, &errfds, in main()
609 ret = tcp_receive_and_reply(&rfds, &errfds, in main()