From: Tudor
Subject: cl-xmpp problems
Date: 
Message-ID: <1178224963.056194.231700@h2g2000hsg.googlegroups.com>
I managed to make a connection using cl-xmpp, but when I try to
authenticate

* CL-USER> (xmpp:auth *connection* "username" "password" "blah")

I get this error:
couldn't write to #<SB-SYS:FD-STREAM for "a constant
string" {ADEA4F1}>:
  Broken pipe
   [Condition of type SB-INT:SIMPLE-STREAM-ERROR]

Syntax of xmpp:auth is (xmpp:auth connection username password
resource).
Anybody know what I'm doing wrong?

From: Zach Beane
Subject: Re: cl-xmpp problems
Date: 
Message-ID: <m3y7k58vhu.fsf@unnamed.xach.com>
Tudor <·······@gmail.com> writes:

> I managed to make a connection using cl-xmpp, but when I try to
> authenticate
> 
> * CL-USER> (xmpp:auth *connection* "username" "password" "blah")
> 
> I get this error:
> couldn't write to #<SB-SYS:FD-STREAM for "a constant
> string" {ADEA4F1}>:
>   Broken pipe
>    [Condition of type SB-INT:SIMPLE-STREAM-ERROR]
> 
> Syntax of xmpp:auth is (xmpp:auth connection username password
> resource).
> Anybody know what I'm doing wrong?

You would get that error if *CONNECTION* is not connected to
anything. How did you set up *CONNECTION*?

Zach
From: Tudor
Subject: Re: cl-xmpp problems
Date: 
Message-ID: <1178227174.645314.189350@l77g2000hsb.googlegroups.com>
On May 3, 5:09 pm, Zach Beane <····@xach.com> wrote:
> Tudor <·······@gmail.com> writes:
> > I managed to make a connection using cl-xmpp, but when I try to
> > authenticate
>
> > * CL-USER> (xmpp:auth *connection* "username" "password" "blah")
>
> > I get this error:
> > couldn't write to #<SB-SYS:FD-STREAM for "a constant
> > string" {ADEA4F1}>:
> >   Broken pipe
> >    [Condition of type SB-INT:SIMPLE-STREAM-ERROR]
>
> > Syntax of xmpp:auth is (xmpp:auth connection username password
> > resource).
> > Anybody know what I'm doing wrong?
>
> You would get that error if *CONNECTION* is not connected to
> anything. How did you set up *CONNECTION*?
>
> Zach

CL-USER> (defvar *connection* (xmpp:connect-tls :hostname
"talk.google.com"
                                           :jid-domain-part
"gmail.com"))
<?xml version='1.0' ?><stream:stream to='gmail.com'
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'><?xml version="1.0" encoding="UTF-8"?version="1.0"
encoding="UTF-8"><stream:stream from="gmail.com" id="C5E50575AA6A0E56"
version="1.0" xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client"
UNHANDLED: #<XML-ELEMENT STREAM:STREAM (5attr:0child:0data) {B973831}>
><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features
UNHANDLED: #<XML-ELEMENT STREAM:FEATURES (0attr:2child:0data)
{B05B941}>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>><proceed
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/
UNHANDLED: #<XML-ELEMENT PROCEED (1attr:0child:0data) {B0FD629}>
<?xml version='1.0' ?><stream:stream to='gmail.com'
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
version='1.0'><?xml version="1.0" encoding="UTF-8"?version="1.0"
encoding="UTF-8"><stream:stream from="gmail.com" id="25C6BF0A6A60CE52"
version="1.0" xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client"
UNHANDLED: #<XML-ELEMENT STREAM:STREAM (5attr:0child:0data) {B683C11}>
><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features
UNHANDLED: #<XML-ELEMENT STREAM:FEATURES (0attr:1child:0data)
{B6C4329}>
*CONNECTION*
From: David Lichteblau
Subject: Re: cl-xmpp problems
Date: 
Message-ID: <slrnf3kt2l.c1m.usenet-2006@babayaga.math.fu-berlin.de>
On 2007-05-03, Tudor <·······@gmail.com> wrote:
> CL-USER> (defvar *connection* (xmpp:connect-tls :hostname "talk.google.com"
>                                            :jid-domain-part "gmail.com"))

Did you evaluate the same form before?

Note that the example uses DEFVAR, which will create a new connection
without actually changing *CONNECTION*.  So you would be doing the AUTH
on an old connection object.

Try using DEFPARAMETER or SETF instead.

(Something else can go wrong: If you wait for more than a couple of
seconds between CONNECT-TLS and AUTH, the server will have timed out and
closed the connection already.  The specific error I get for that is a
little different, though.)


d.