Hi,
If O_NONBLOCK is not set on the socket's file descriptor,
recvfrom() blocks until a message arrives. If no messages are
available at the socket and O_NONBLOCK is set on
the socket's file descriptor, recvfrom() fails and sets errno to EAGAIN.
But how to set 0_NONBLOCK on the socket's file descriptor?
Yours
Zhu Ming
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
- Re: HOw to set a NONBLOCK recvfrom() in SOCKET? #ZHU MING#
- Re: HOw to set a NONBLOCK recvfrom() in SOCKET? Vinay V.Kulkarni
- Re: HOw to set a NONBLOCK recvfrom() in SOCKET? Ben Greear
