我正在使用Eclipse进行一个涉及通过套接字通信的服务器和客户端的任务。我试图使用accept
系统调用,该调用使用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未被识别?
fd_set
。 - undefined