English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2006-08-23 (07:44)
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