Re: Non-blocking input on windows, like select in Unix

2005-03-02 Thread Jonathan Fine
fraca7 wrote: Jonathan Fine a écrit : Paul Rubin wrote: As I recall, some posts to this list say that Windows provides non-blocking i/o for sockets but not for files. No, Windows does provide non-blocking I/O for regular files, but it's a completely different mechanism than the one used by winso

Re: Non-blocking input on windows, like select in Unix

2005-03-02 Thread fraca7
Jonathan Fine a écrit : Paul Rubin wrote: As I recall, some posts to this list say that Windows provides non-blocking i/o for sockets but not for files. No, Windows does provide non-blocking I/O for regular files, but it's a completely different mechanism than the one used by winsock. You'll have

Re: Non-blocking input on windows, like select in Unix

2005-03-01 Thread Jonathan Fine
Paul Rubin wrote: Jonathan Fine <[EMAIL PROTECTED]> writes: My question is this: Under Windows, is it possible to read as many bytes as are available from stdout, without blocking? I think Windows implements non-blocking i/o calls. However the traditional (to some) Python or Java approach to this

Re: Non-blocking input on windows, like select in Unix

2005-03-01 Thread Paul Rubin
Jonathan Fine <[EMAIL PROTECTED]> writes: > My question is this: Under Windows, is it possible > to read as many bytes as are available from stdout, > without blocking? I think Windows implements non-blocking i/o calls. However the traditional (to some) Python or Java approach to this problem is

Non-blocking input on windows, like select in Unix

2005-03-01 Thread Jonathan Fine
Hello I have written a program that interacts with a command line program. Roughly speaking, it mimics human interaction. (With more speed and accuracy, less intelligence.) It works fine under Linux, using select(). But Windows does not support select for files. Only for sockets. Here's a google se