I\'m developing a java interface between a streaming server and a flash client. I noticed that UDP datagrams can reach my interface out of order even if both processes are r
Actually there are no guarantees of ordering and reception about UDP packets, even if they are sent by localhost on localhost. Just because the specification of the protocol doesn't imply anything about it.
Since you can't make assumptions on them you should choose to use TCP or handle reordering by using a sequence number handled by your programs..