Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试学习如何编写非阻塞套接字。谁能解释一下 ioctl() 和 fcntl() 在其中扮演什么角色(即文件描述符在创建非阻塞套接字中的角色是什么。作为示例的代码片段和解释将不胜感激。
您使用其中一个来设置O_NONBLOCK. 你肯定已经发现了?
O_NONBLOCK