[racket-dev] polling select in racket
Also, the Racket file IO is already using select()/etc underneath, so
when you `sync' on file ports or TCP ports, etc, you're already using
select.
Jay
2011/2/9 Noel Welsh <noelwelsh at gmail.com>:
> 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
>>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/dev
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay
"The glory of God is Intelligence" - D&C 93