source/AsioSelect.cpp
// removes all fds not set in the fdset.
removes all fds not set in the fdset.
removes all fds not set in the fdset .
void AsioSelect::audit_read(fd_set& fdset, native_fd_t max_fd)
{
#ifdef ASIO_SELECT_TRACE
    std::cerr << "TRACE audit_read:  " << fd_set_nr { max_fd, fdset } << std::endl;
#endif
    for (auto iter = tracker_.begin(), last = tracker_.end(); iter != last;)
    {
        if ((*iter).first > max_fd || !FD_ISSET((*iter).first, &fdset))
            iter = tracker_.erase(iter);
        else
            ++iter;
    }
}
void AsioSelect :: audit_read ( fd_set & fdset , native_fd_t max_fd ) { #ifdef ASIO_SELECT_TRACE std :: cerr << " " << fd_set_nr { max_fd , fdset } << std :: endl ; #endif for ( auto iter = tracker_ . begin ( ) , last = tracker_ . end ( ) ; iter != last ; ) { if ( ( * iter ) . first > max_fd || ! FD_ISSET ( ( * iter ) . first , & fdset ) ) iter = tracker_ . erase ( iter ) ; else ++ iter ; } }
removes all fds not set in the fdset.
removes all fds not set in the fdset .