리눅스에서 socket 통신은 처음이라... 여러군데서 정보를 찾아 넌블럭 소켓으로 프로그램을 짜고 있습니다.
그런데 아래 소스에서 궁금한 점이 생겨서 이렇게 질문 드립니다.
while( 1 )
{
tv.tv_sec = timesec; // select 함수 time아웃 설정
tv.tv_usec = 0;
FD_ZERO(&w_set);
FD_SET(fd, &w_set);
retval = select(fd+1, NULL, &w_set, NULL, &tv);
printLog(lp, STAMP, " retval [[[ %d ]]] \n", retval);
if( retval < 0 && errno != EINTR )
{