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.
在我正在开发的程序中,我设置了一个超时使用setsockopt(),以防止recvfrom()无限期阻塞。如何禁用超时?
setsockopt()
recvfrom()
(我在 Ubuntu 上)
与您设置它的方式相同,但值为零而不是正值。
正如手册页中所说。