[cl-xmpp-devel] cl-xmpp with usocket patch

Burguz Omonov burguzomo at hotmail.com
Sun Jul 6 05:21:48 UTC 2008



Hello Erik! 
Thanks alot for your quick response. I played abit more with the code, still the same results with jabber.org. I think the code fails after receiving the first XML bundle from the xmpp server. (machetto is ejabberd v.2.0 that I had on loopback).

Here's the full snippet of the code that I am running as test now:

(require :cl-xmpp)
(defvar *connection* (xmpp:connect :hostname "jabber.org"))
(xmpp:auth *connection* "clxmpp" "clxmpp" "res")
(xmpp:message *connection* "burguzomo at gmail.com" "ssup")
(xmpp:receive-stanza-loop *connection*)

and the execution log I pasted here - http://paste.lisp.org/display/63329. I think the code still fails at the same place, something to do with cxml and sockets I guess. When using usocket patch, do I need to update any other packages ..? (trivial-gray-streams comes in mind)

 There is no applicable method for the generic function
    #
  when called with arguments
    (#S(CL-XMPP::SLOW-STREAM
        :TARGET #)).


The sbcl version is the 1.0.9-genttoo (v. 1.0.9 with gentoo patches). I simply installed it from gentoo's standard portage.

usocket version -  I am using 0.3.7 version of usocket. (installed with asdf-install). Here are the other packages/versions that I had installed:

machetto cl-xmpp # ls ~/.sbcl/site/
cl-base64-3.3.2            cxml-2007-10-21  trivial-gray-streams-2006-09-16
cl-sasl_0.3                ironclad_0.26    usocket-0.3.7
cl-xmpp                    puri-1.5.1
closure-common-2007-10-21  split-sequence
machetto cl-xmpp #

originally cl-xmpp installation using asdf-install failed due broken(?) link to trivial sockets page, so I installed all the packages manually one by one and then applied patch to installed version of cl-xmpp. (I couldn't install the trivial sockets, because I couldn't find a working mirror. any?)

I assumed that the example would work w/o usocket patch because this is basically the example from the cl-xmpp README file (I simply changed the usernames).


_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE



More information about the cl-xmpp-devel mailing list