winsock stuff

Alexandre Julliard julliard at winehq.com
Mon Aug 20 19:19:00 CDT 2001


Daniel Walker <diwalker at earthlink.net> writes:

> 	To improve on this patch we could only do the FIONREAD if the sock is
> in a non-blocking state. That's the only time that doing the FIONREAD
> would be an advantage. Also we wouldn't need to worry about screwing up
> blocking sockets. Even further, we could only do the FIONREAD if socket
> is non-blocking and looking for an FD_CLOSE event.

Using FIONREAD is simply not an option, it cannot be made reliable.
A possibility to detect EOF could be a recvmsg with MSG_PEEK flag,
though you should probably verify first that it behaves as expected.

-- 
Alexandre Julliard
julliard at winehq.com




More information about the wine-devel mailing list