2012-10-22 2 views
2

나는 이클립스에서 소켓을 통해 통신하는 서버와 클라이언트를 포함하는 과제에서 일하고있다. fd_set 구조체를 사용하는 accept 시스템 호출을 사용하려고합니다. 문제는 Eclipse가 유형 fd_set이 해결되지 않았 음을 나타냅니다. fd_set 이클립스에서 인식되지 않는다

#include <sys/types.h> 
#include <sys/socket.h> 
#include <sys/time.h> 
#include <arpa/inet.h> 
#include <vector> 
#include <iostream> 
#include <errno.h> 
#include <stdio.h> 
#include <unistd.h> 

왜 이클립스 FD_SET을 표시한다을 인식하지 : 여기

내 수입의 목록입니다?

답변

5

http://linux.die.net/man/3/fd_set에 따르면, #include <sys/select.h>. 잘하면 그 트릭을 할 것입니다.

+0

[The Open Group Base Specification, sys/select.h] (http://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/select.h.html)도 참조하십시오. Posix가'fd_set'을 발견 할 수있는 곳. – jww

관련 문제