Quote Originally Posted by Nominal Animal View Post
You get -1 and errno==EAGAIN (or errno==EWOULDBLOCK), because you have set a timeout of one millisecond, and it elapses before a packet arrives.
Does that mean every time when the timeout elapses before I receive a packet I get an error? Because than it would not make any difference to increase the timeout because I'm not even sure I will receive a reply (thats because I need the timeout). If I increase the timeout and don't receive a packet anyway I still get the error is that correct?