[cl-xmpp-devel] cl-xmpp event handling

Adam Thorsen adam.thorsen at gmail.com
Sun Dec 18 04:17:20 UTC 2005


Sorry Erik, never mind.  It was my fault.

-Adam

On 12/17/05, Adam Thorsen <adam.thorsen at gmail.com> wrote:
>
> I do restart the loop:
>
> (defun |SendMessage| (message)
>
>   (let ((uid (s-xml-rpc:get-xml-rpc-struct-member message :|uid|))
>         (body (s-xml-rpc:get-xml-rpc-struct-member message :|text|)))
>     (let ((connection
>            (gethash
>             (make-jid (get-handle 1))
>             *connection-hash*)))
>       (xmpp:message connection "awt at jabber.loglibrary.com"body)
>       (sb-thread:make-thread (lambda () (xmpp:receive-stanza-loop
> connection)))))
>
>   (s-xml-rpc:get-xml-rpc-struct-member message :|text|))
>
> Could I somehow be starting the loop on the wrong  connection?
>
> I do I specify to the handler which connection it should be watching?
>
> Thanks,
> -Adam
>
>
> On 12/17/05, Erik Enge < erik.enge at gmail.com> wrote:
> >
> > On 12/17/05, Adam Thorsen < adam.thorsen at gmail.com> wrote:
> > > However, once I send a message, like this:
> > >
> > > (xmpp:message connection "awt at jabber.loglibrary.com"body)
> > >
> > > xmpp:handle seems to stop processing messages on the connection.  Why
> > does
> > > this happen?  How can I get it to start processing messages again?
> >
> > I take it you interrupted the read-stanza-loop in order to send that
> > message?  You don't mention if you start the loop again afterwards,
> > could that be the problem?
> >
> > Erik.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-xmpp-devel/attachments/20051217/13392c6c/attachment.html>


More information about the cl-xmpp-devel mailing list