chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Is there a way to get tcp-accept to time-out?


From: Ed Watkeys
Subject: Re: [Chicken-users] Is there a way to get tcp-accept to time-out?
Date: Fri, 25 Feb 2005 09:37:17 -0500


On Feb 25, 2005, at 9:09 AM, Julian Morrison wrote:

That said, it still bothers me that I can't write this Posix-ly as I would in C with select(2).

You probably want to do it in C via the FFI then, or even implement a Scheme-ish (select) wrapper so you can copy the Guile code.

An alternative is to write a simple C procedure that can grab the fd from the socket, so it can be passed to file-select. I'd rather not have to deal with select's blocking and its interaction with Chicken's threads at the C level.

Ed





reply via email to

[Prev in Thread] Current Thread [Next in Thread]