From: Diederik v. d. B. <vd...@co...> - 2005-11-22 22:16:56
|
I've got a question from Richard (aka Seraph). I've sent this reply to the= =20 mailing list instead since everyone is on it now. :-) > hi, did you ever get around to looking through that patch file i sent you > where i got msnp11 just about working? the only problem was that it seemed > to disconnect after a challenge? well ive been working on it some more > recently, and according to ethereal, my code is working out the response = to > the challenge, sending the response, and then receiveing a "QRY > <TrID>=C2=A00\r\n" from the server THEN the socket gets closed, at the cl= ients > end i think as well, because ethereal does not pick up any PNG commands > from the client after this point??? so i was wondering if you can work out > what i have messed up in the gotChl() method? (i know its something ive > messed up..) because ive been looking for nearly a week now, and i cant > work out why its disconnecting... In other news i wrote that > MsnConnection::parsePayloadCommand() method we were talking about a few > weeks ago, and now have the ubx command reading peoples personal message > (doesnt read the current media info yet=C2=A0though) The server probably disconnects because the wrong challenge response is sti= ll=20 sent. You can see this in Ethereal by looking for a TCP packet with the "FI= N"=20 flag. If the server sent the first FIN packet, it closed the connection=20 before you did. Note that both server and client send FIN packets to=20 disconnect, but what matters is who sent the first one. I tried to look at your code, but had a hard time to debug things too (thou= gh=20 I didn't look days in it). Then I desided to look how Kopete does it - sinc= e=20 they have MSNP11 support in KDE 3.5 - and found a really nice, well written= =20 implementation: http://websvn.kde.org/branches/KDE/3.5/kdenetwork/kopete/protocols/msn/msnc= hallengehandler.cpp?rev=3D438982&view=3Dmarkup Actually a really cool example of how Qt/KDE can make C++ easier. Although I don't like to idea of using other work so easily, I think this=20 saves a lot of time and we'd place the credits in the about dialog. > btw ive signed up for the mailing list you told me about Thanks :-) That's why I've sent the reply to the mailing list instead. :-) Diederik =2D-=20 Peace cannot be kept by force; it can only be achieved by understanding. -- A. Einstein |