epoll非阻塞IO

设置connfd套接字为非阻塞

flag = fcntl(connfd, F_GETFL);

flag |= O_NONBLOCK;

fcntl(connfd, F_SETFL, flag);

原文地址:https://www.cnblogs.com/lr1402585172/p/10758740.html