Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.40K
Most examples of the select() function use a 0 to 'max file descriptor value' approach: [CODE] fd_set master_fd_set; FD_ZERO(&master_fd_set); fd_set temp_fd_set; FD_ZERO(&temp_fd_set); int max_fd = the_max_file_descriptor_value_of_descriptors_interested_in; ... temp_fd_set = master_fd_set; ::select(max_fd, &temp_fd_set, NULL, NULL, NULL); for (int i = 0; i <= max_fd; ++i) { if (FD_ISSET(i, &temp_fd_set)) { // … |