On Friday 11 March 2005 06:29 pm, Anthony Ortiz wrote: > Does this answer your question? The only case where I see this not > working is if the Jabber server sent partial fragments from different > senders :
Remember that TCP is just a stream of bytes. There are no packets, at least not from the application's point of view. If you send a chunk of data, there is no guarantee it will arrive "all at once" on the other side. The only guarantee is that the bytes will be in order. It is not the Jabber server that is breaking up the stanzas into parts, but more likely the TCP subsystem of either the Jabber server or your client's computer. Solid TCP applications should be able to operate even at 1-byte granularity. Never expect "packets" from TCP! Since TCP is just a stream of bytes, and XMPP transmits a fully conforming XML document as-is, then one way to look at XMPP is as if you were parsing a really long XML file. You should now have enough information to decide if Jabber would ever send jumbled XML fragments. -Justin _______________________________________________ jdev mailing list [email protected] http://mail.jabber.org/mailman/listinfo/jdev
