[icq-devel] Login Problems using V7 Protocol

Terry Berman tberman at cox.rr.com
Mon Nov 12 03:44:14 CET 2001

Thanks for your reply.

I believe I've got this one solved.  I was starting my request ID values in
the snac by generating a random number as I do for the sequence number in
the flap.  However, sometimes the leading byte would be FF and the server
definitely didn't like this.  So on the times that it wasn't this value it
would work.. and the times it was -- it dropped the connection.

----- Original Message -----
From: "Daniel Tan" <datan at seas.upenn.edu>
To: <icq-devel at blipp.com>
Sent: Sunday, November 11, 2001 9:24 PM
Subject: Re: [icq-devel] Login Problems using V7 Protocol

> So far, I've only seen the server close the connections (during login)
> 1. sequence numbers are out
> 2. it 'waits' too long for you to complete the login procedure.
> Is SNAC (1, 17) the last packet you send before it disconnects you
> Or are you reading from a socket which blocks for some time until icq
disses you?
> if you're really stuck you can email me the relevant part of your code.
> Terry Berman wrote:
> >
> > I am in the process of updating my java icq client from v5 to v7.
> >
> > I have now built the code that performs the login, but I am having
troubles.  Perhaps someone has some insight that can help.
> >
> > I have checked my code and I am following the precise sequence
identified in the document.  The fact that I am able to get a complete login
> > sequence to work all the way through (about half the time) is
encouraging.  However, the other half of the time the icq server closes down
> > socket.  It always happens in the same place.
> > Here is the problem:
> >
> > When I send snac (1,17) along with the 32 bytes of data, i then go and
pick up the server response snac(1,18).
> > About half the time the server sends back exactly the sequence shown in
the document.  The other half of the time it shuts down the
> > connection.
> >
> > Any Ideas ?
> >
> > Thanks,
> >
> > Terry
> -------------------------------------------------
> icq-devel - The forum for ICQ protocol discussion
> For unsubscribe and other mailing list info, see:
> http://www.d.kth.se/~d95-mih/icq/icq-devel/

More information about the icq-devel mailing list