The order of TCP message? -


i'm developing c++ application server , client use tcp. have 3 messages on server: a, b , c. sent sequentially: -> b -> c. , clients responses acknowledge messages:ra, rb, rc.

do client receive a, b , c in order a->b-c? server receive ra->rb->rc?

tcp guarantees order packets received (on single connection) same order sent. no such guarantee if you've got multiple tcp connections, though - tcp preserves ordering packets within given tcp connection.

see the wikipedia article on tcp more overview.

one of functions of tcp prevent out-of-order delivery of data, either reassembling packets order or forcing retries of out-of-order packets.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -