In the program I am developing, I've set a timeout using setsockopt()
in order to prevent recvfrom()
from blocking indefinitely. How can I disable the timeout?
(I'm on Ubuntu)
In the program I am developing, I've set a timeout using setsockopt()
in order to prevent recvfrom()
from blocking indefinitely. How can I disable the timeout?
(I'm on Ubuntu)
Same way you set it, but with a value of zero instead of a positive value.
As it says in the man page.