> Also. select() will only check up to N-1 socket descriptors. So don't pass > it N. I can't make it clearer besides saying look at beej's code for > multi-user sessions and select(). Or per the select() man page: The first nfds descriptors are checked in each set; i.e., the descriptors from 0 through nfds-1 in the descriptor sets are examined. - Vern