Version française
Home     About     Download     Resources     Contact us    
Browse thread
AW: [Caml-list] Re: Select on channels (again)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Robert Roessler <roessler@r...>
Subject: Re: AW: [Caml-list] Re: Select on channels (again)
Christoph Bauer wrote:
> ...
> I did this, but on windows with two programs communicating over
> a pipe this isn't enough. select on windows and on a pipe doesn't
> work. Therefore I wrote a stub for PeekNamedPipe():

"Select on windows" certainly does work... and why not use a socket 
pair, just as one might on a *nix system?  That way, it will work on both.

And the fact that socketpair has been left out of the Windows version 
of the Unix module is not an impediment - it is easy to write a useful 
implementation in OCaml (I can supply one if needed).

Robert Roessler
roessler@rftp.com
http://www.rftp.com