Re: patch for socketmodule

Samual M. Rushing (rushing@niven.ksc.nasa.gov)
07 Sep 1994 22:58:54 GMT

>>>>> "rb" == Reimer Behrends <behrends@buran.fb10.tu-berlin.de> writes:
In article <34kv4v$sfa@brachio.zrz.TU-Berlin.DE> behrends@buran.fb10.tu-berlin.de (Reimer Behrends) writes:

rb> tnb2d@brunelleschi.cs.virginia.edu wrote: : Some folks here
rb> wanted to add non-blocking read and write : functionality to the
rb> socketmodule, so we did.

rb> I may be a bit dense, but why not just use the fcntl module to
rb> do that?

With WINSOCK (that's sockets for Windows) sockets and file handles do
not work interchangeably - You must use 'setsockopt'. The new method
is less hairy, more convenient & portable (you don't have to know
magical numbers for setsockopt).

-Sam

--
-- 
Sam Rushing                              The curious task of economics is
rushing@titan.ksc.nasa.gov               to demonstrate to men how little
rushing@squirl.oau.org                   they really know about what they
                                         imagine they can design. -F.A.Hayek