On Fri, Oct 24, 2008 at 05:34:15PM +0200, Erik Huelsmann wrote:
On Sun, Aug 31, 2008 at 4:48 PM, Lionel Flandrin simias.n@gmail.com wrote:
Hi,
I'd like to write a minimal curses IRC client, and cl-irc seems the way to go. However, irc:read-message blocks if there's nothing to process in the connection. Since I'm not fond of threads, I wondered if there could be a way to use cl-irc in a non-blocking fashion ?
The function read-sequence-until seems to take a key parameter "non-blocking", I thought that maybe modifying read-irc-message and adding ":non-blocking t" would do what I want ? Anyway, I thought I'd ask for your advices first.
Hi! Sorry for taking such a long time to answer. I think it should be possible to give you the tools to create a single-threaded application. There should not be much more to it than to add a non-blocking parameter to irc:read-message, since the application would become responsible of handling "the rest".
Care to write a patch which works for you? I'll commit it (after review ofcourse).
Glad to hear from you.
I think I might try to do just that, however I'm really busy lately so it might take me a little while. Could you just tell me if the :non-blocking attribute is the right way to go ?
Bye,
Erik.`
Thanks for your reply,