[racket-dev] polling select in racket

From: Noel Welsh (noelwelsh at gmail.com)
Date: Wed Feb 9 05:07:48 EST 2011

Yes to all your questions.

 - Socket ports are syncable events in Racket. Just call (sync
input-port ...) to block for available data
 - The FFI makes it easy to call system functions. However, if you
want to interface to epoll/kqueue I would advise binding to libev or
libevent instead.

HTH,
N.

On Wed, Feb 9, 2011 at 12:40 AM, jenny sun
<jenny.sun.jenny.sun at gmail.com> wrote:
> Hi,
>
> Can Racket access to system calls like select () in unix?
> or there are there APIs that can check channel data ready or not? e.g.
> socket's data whether ready to read or write or not?
>
> Thanks,
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
>



Posted on the dev mailing list.