On Fri, 7 Feb 2003 20:42:50 +0100, Jasper Spit wrote: >My point was to make clear that your statement that 'it is almost >always >an error to use select() with non blocking sockets' is simply not >true. >I think that might be relevant to other openssl users.
I stand by my point until and unless you can find some guarantee that what 'select' tells you is true now will continue to be true in the future when you get around to calling whatever I/O function you were planning to call. That it happens to work on the platforms you happened to test it on is utterly irrelevant. Writing code that happens to work on Windows NT and Windows 2000 but may or may not work on Windows 2003 because you were lazy and sloppy is wholly unacceptable and almost always an error. If you are willing to block, there is no reason to call 'select'. If you cannot block, you cannot do I/O on blocking sockets. A possible exception is WIN32 programs that use send and receive timeouts. This is not an exception for UNIX programs, however, because SuS does not guarantee that the timeout functions will work and there are ambiguities about their semantics. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]