Quote:Original post by Thevenin
Your certian that the packets your application view are in order; as opposed to the sub-packets composing each packet.
Everything you send (over the same connection, obviously) will arrive in order.
No exceptions, no special cases. If you send something, it arrives after whatever you send previously, and before whatever you send next. Whether it's sent using one or more send()-calls, whether it's part of the same char[] is irrelevant.
Quote:
The reason I'm hesitant to believe this, is because I've been informed otherwise
You've been informed wrong then? [wink]
ZQJ just posted some links you might want to check out to convince yourself.
But the entire point in TCP is to offer a service with virtually every commonly useful feature. Reliability, in order, connection-oriented, and dozens of other things.
UDP is the discount version, guaranteeing only that a packet will either arrive unchanged or not arrive at all.