[gameprogrammer] Re: recvfrom returning 0 on UDP and blocking

I know that.  There is no shutdown sequence on UDP though.  That is the
problem.

----- Original Message -----
From: "Rob Quill" <rjquill@xxxxxxxxxx>
To: <gameprogrammer@xxxxxxxxxxxxx>
Sent: Wednesday, June 23, 2004 11:23 AM
Subject: [gameprogrammer] Re: recvfrom returning 0 on UDP and blocking


> Assuming this is th same function:
>
> Upon successful completion, recvfrom() returns the length of the message
> in bytes. If no messages are available to be received and the peer has
> performed an orderly shutdown, recvfrom() returns 0. Otherwise the
> function returns -1 and sets errno to indicate the error.
>
> Taken from:
>
> http://www.opengroup.org/onlinepubs/007908799/xns/recvfrom.html
>
> Rob



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: