[jdev] Communicate between two client instances of the same ID

Kevin Smith kevin at kismith.co.uk
Tue Sep 2 16:16:05 CDT 2008


On Tue, Sep 2, 2008 at 9:47 PM, JLIST <jlist9 at gmail.com> wrote:
> I come from the TCP/IP world (as you can tell :) and I'm trying
> to understand how streams work in XMPP. Let's say I send out
> two <message /> messages. If they are delivered, are they
> guaranteed to be delivered in the same order they are sent?

Yes, in-order stanza processing is a spec. requirement.

> ... XMPP message delivery works more like TCP rather than UDP,
> which may drop packets when network condition is bad.

Right - you're not going to lose stanzas from the middle of a stream,
or have stanzas arrive out of order (when working with compliant
implementations, at least), but you may lose messages if the stream
goes down (I don't know of any implementation that monitors the TCP
stack and recovers stanzas that don't get acked at that layer).

/K



More information about the JDev mailing list