It's in Python. It just _works_!
elbertlev at hotmail.com
Fri Sep 3 16:32:44 CEST 2004
Tim Peters <tim.peters at gmail.com> wrote in message news:<mailman.2799.1094175262.5135.python-list at python.org>...
> [Grant Edwards]
> > ...
> > Apparently, the file descriptor you get from a socket object
> > under Win32 can't be used with os.read() and os.write()? I
> > couldn't find anywhere in the docs that said so, but I sure
> > couldn't get it to work. At least not under WinMe.
> Socket handles and file descriptors are disjoint concepts in Windows
> (any flavor), and aren't interchangeable in any context.
Not exactly. In WIN32 API WriteFile() one can use SOCKET and file
handle returned by CreateFile(). os.read() uses handles returned by
open(), which on WIN32 are not the same as returned by CreateFile.
More information about the Python-list