TCP question



I am using TCP control in VB6. I am sending a lot of messages every milli
seconds.
Sometimes (not very often) the messages received will be out of order, and
they are NOT received one after another. In between the message, there are
other messages.
Like the following example:

ABC,140425,140450,139800,LAST|
39850,,LAST| -->> incomplete and out of order, it should be after the
message below
ABC,140415,140440,139700,,LAST|
ABC,140430,140455,139815,,LAST|
ABC,140445,140470,139820,,LAST|
ABC,140425,140450,1 -->> incomplete and out of order, it should be before
the message above

Message "ABC,140425,140450,1" should appear before and be together with
"40125,,LAST| "
So, it should be "ABC,140425,140450,139850,,LAST|".

Is this how TCP works ? Any way around it ?
Thank you.


.


Loading