一.epoll_create #include <sys/epoll.h> int epoll_create(int size); int epoll_create1(int flags); 返回:成功非负文件描述符,-1出错size:内核监听数目一共多大 创建一个epoll接口,size参数和select不同,不是fd+1? 需要注意的是:当创建好epoll后,它就会占用一个fd值,在linux /proc/id/fd/能看到这个fd的,所以使用完epoll后,必须close()关闭,否则可…