그냥 FD_ISSET는 기존 descriptor set에서 해당 소켓 descriptor I/O 변화가 있으면 양수값 리턴한다 가 아니라,
fd_set rset;
FD_SET(fileno(fp), &rset);
FD_SET(sockfd, &rset);
...
select (maxfdp1, &rset, NULL, NULL, NULL);
까지 하면 rset 의 0번과 3번이 fileno(fp)와 sockfd로 인해 1로 셋 되는거 까진 이해가 가는데,