Hi Tomas,
I attach a simple non-blocking echo server. There are some functions
Nice!
Conceptually it should not block, I am not sure how to test it though.
Any ideas?
Positive testing works well:
abu:~/pico ./p dbg.l nb-ex.l
: (more *Run)
(5 (when (accept @) (task @ Sock @
Hi Konrad,
But the underlying select function also provides non blocking writes.
so that you can dely trying to write to a socket until it is ready for
more data.
Yep, this is also needed.
It would appear that task and *Run have no way of using this part of
the select function.
Right.
Hi Konrad,
train. The task and *Run mechanism (if used with enough care) give us
non blocking reads.
But the underlying select function also provides non blocking writes.
so that you can dely trying to write to a socket until it is ready for
more data.
I would say that select (in C) and
Hi Alex,
http://www.software-lab.de/refP.html#poll says:
(poll 'cnt) - cnt | NIL
Checks for the availability of data for reading on the file
descriptor cnt. See also open, in and close.
: (and (poll *Fd) (in @ (read))) # Prevent blocking
The comment is a bit misleading as it does
If the socket is set not to block, then the socket will read as much
data as is available and the underlying read call will return the
number of bytes read, right? So the poll will still be useful in an
nbio world.
John
On 10 Oct 2008, at 12:36 PM, Alexander Burger wrote:
Hi Tomas,
The
Good bye Howard Gordon [EMAIL PROTECTED] :-(
You are now unsubscribed
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]
Hi Henrik,
I could help with implementing the code highlighting I have on
prodevtips, it's all happening in the client through javascript, very
easy actually, you simply need the ability to add html in the content,
if the necessary javascript files are included then you can do:
There has been some prior discussion on the list:
http://www.mail-archive.com/search?q=circular+listsl=picolisp%40software-lab.de
It might or might not be of help.
/Henrik
--
UNSUBSCRIBE: mailto:[EMAIL PROTECTED]