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?
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
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.