2

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)

pjcunningham
  • 7,676
  • 1
  • 36
  • 49
Rapidturtle
  • 217
  • 1
  • 3
  • 13

1 Answers1

4

Same way you set it, but with a value of zero instead of a positive value.

As it says in the man page.

user207421
  • 305,947
  • 44
  • 307
  • 483