![](https://csdnimg.cn/release/download_crawler_static/64012264/bg1.jpg)
int flags = fcntl(socket, F_GETFL, 0);
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
int flags = fcntl(socket, F_GETFL, 0);
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
int flags = fcntl(socket, F_GETFL, 0);
fcntl(socket, F_SETFL, flags & ~O_NONBLOCK);
int fcntl(int fd, int cmd);
欧阳光明
(2021.03.07)
[日期:0416]
来源:Linux社区 作者:Linux