Re: Basis Library: select for file descriptors

Christopher Cramer <[email protected]> Thu, 24 Mar 2016 09:27:35 -0400
Newsgroups gmane.comp.lang.ml.mlton.user
Message-ID <[email protected]>
On Thu, Mar 24, 2016 at 12:48:31AM +0000, Michael Norrish wrote:
> I can see there is select for socket descriptors in the Socket structure,
> but it doesn't appear as if there is one for file_descs in the Posix
> structure.  Am I right?  Will my multiplexing file-manipulator just have
> to busy loop over the descriptors I have?

You can use OS.IO.poll (and Posix.FileSys.fdToIOD and Socket.ioDesc etc.)
for that. I'm pretty sure Socket.select is intended for use on Windows
(which has a select that only works with sockets).

-- 
You received this message because you are subscribed to the Google Groups "MLton-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140