2
我正在Eclipse中進行涉及服務器和客戶端通過套接字進行通信的任務。我試圖使用accept
系統調用,它使用fd_set
結構。問題是Eclipse指示fd_set
類型未解決。在Eclipse中未識別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>
爲什麼Eclipse的指示FD_SET無法識別?
另請參閱[Open Group Base Specification,sys/select.h](http://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/select.h.html)。它有效地在Posix的狀態下找到'fd_set'。 – jww