scsh-hackers
[Top] [All Lists]

[Scsh-hackers] select

To: scsh-hackers <scsh-hackers@lists.sourceforge.net>
Subject: [Scsh-hackers] select
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: 12 Mar 2001 16:07:53 +0100
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
>>>>> "Olin" == shivers  <shivers@cc.gatech.edu> writes:
Olin>    In general you're right of course, but I don't know how hard it is to
Olin>    fake *select*. I'll give it a try tomorrow.
Olin> Super.

There is definitely no way to fake SELECT using the Scheme 48 port and
channel system. The reason is that they only way to test for writing
is to actually *perform* a write. There is no equivalent to char-ready?
even inside the system. So all I can offer is to use the select
syscall with a short timeout and then do a loop until something
happens.


-- 
Martin


<Prev in Thread] Current Thread [Next in Thread>