[cl-xmpp-devel] with-iq-query
Adam Thorsen
adam.thorsen at gmail.com
Sat Dec 24 19:53:09 UTC 2005
I'm trying to use with-iq-query to get some presence information, but
I'm not getting very far with it.
Whenever I call it, I get an error saying that CL-XMPP:CONNECTION is
not defined.
I tried to figure out where that was coming from by macroexpanding the
call, and this is what I get (notice the value of the tempcon var at
the beginning):
CL-USER> tempcon
#<CL-XMPP:CONNECTION to jabber.loglibrary.com:5222 (open) {93D80C9}>
---------> notice that tempcon contains a live connection
CL-USER> (macroexpand-1 '(xmpp:with-iq-query (tempcon :id "who" :to
"jabber.loglibrary.com" :xmlns "jabber:iq:admin")(cxml:with-element
"who")))
(CL-XMPP:WITH-IQ
(CL-XMPP:CONNECTION :ID "who" :TYPE "get" :TO "jabber.loglibrary.com")
(CXML:WITH-ELEMENT "query"
(CXML:ATTRIBUTE "xmlns" "jabber:iq:admin")
(WHEN NIL (CXML:ATTRIBUTE "node" NIL))
(CXML:WITH-ELEMENT "who")))
T
---------> Notice that where tempcon should be, CL-XMPP:CONNECTION is instead
---------> So I replaced tempcon with an arbitrary string, "whatever"
and found that it
was still replaced by CL-XMPP:CONNECTION
CL-USER> (macroexpand-1 '(xmpp:with-iq-query ("whatever" :id "who" :to
"jabber.loglibrary.com" :xmlns "jabber:iq:admin")(cxml:with-element
"who")))
(CL-XMPP:WITH-IQ
(CL-XMPP:CONNECTION :ID "who" :TYPE "get" :TO "jabber.loglibrary.com")
(CXML:WITH-ELEMENT "query"
(CXML:ATTRIBUTE "xmlns" "jabber:iq:admin")
(WHEN NIL (CXML:ATTRIBUTE "node" NIL))
(CXML:WITH-ELEMENT "who")))
T
CL-USER>
--------------------------------------------
Any idea what might be going on?
Thanks,
-Adam
More information about the cl-xmpp-devel
mailing list