입출력 대기와 검사
☞ select, FD_ZERO, FD_SET, FD_CLR, FD_ISSET int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); void FD_ZERO(fd_set *set); void FD_SET(int filedes, fd_set *set); void FD_CLR(int filedes, fd_set *set); int FD_ISSET(int filedes, const fd_set *set); 아파치 웹서버처럼 여러 클라이언트의 동시 접속 요구를 대응해야 하거나 직렬 통신 서비스를 처리하는 프로그램의 경우 일반적인 프로그램 흐름을 방해 받지 않으면서 입력 처리할 데이터가 있..
C | C++
2018. 6. 17. 16:59