Hello On Mon, Sep 29, 2008 at 09:19:17AM +0200, Remko Tronçon wrote: > > I tried to create my own XMPP parser/library (for, ehm, educational > > purposes). I never come across this issue. As far as I understand it, I > > get proceed, but no more binary data. > > You mean you don't get binary data when you did a read() of > <proceed/>? You can't rely on that on a TCP connection.
I could rely on that if the server sent them only as a response to _my_ binary data. If it is this: S: <proceed/> C: Binary greeting S: Binary response Then everything is OK, because I can get ready for binary before I send my binary part. I'm not sure it is this way, but whenever I looked on a TCP dump or expected this behaviour, it always worked this way. Of course, If this could happen too: S: <proceed/> S: Some binary data C: Binary response Then I would be out of luck and couldn't expect it to come out as two separate reads. I expect the proceed is ment as server telling me he is ready for _my_ binary data. It won't send me any binary data unless I do it first. Have a nice day -- I have a theory that it's impossible to prove anything, but I can't prove it. Michal 'vorner' Vaner
pgpgAJZOctBw8.pgp
Description: PGP signature
_______________________________________________ JDev mailing list FAQ: http://www.jabber.org/discussion-lists/jdev-faq Forum: http://www.jabberforum.org/forumdisplay.php?f=20 Info: http://mail.jabber.org/mailman/listinfo/jdev Unsubscribe: [EMAIL PROTECTED] _______________________________________________