[cl-irc-devel] Make cl-irc non blocking ?
Erik Huelsmann
ehuels at gmail.com
Fri Oct 24 15:34:15 UTC 2008
On Sun, Aug 31, 2008 at 4:48 PM, Lionel Flandrin <simias.n at 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).
Bye,
Erik.`
More information about the cl-irc-devel
mailing list