>We have encountered a problem where two or more messages 
>sent to the same destination machine within a shortish period of 
>time (<750ms), become concatenated in to one long message.  
>This destroys our messaging system, besides waiting before 
>delivering the message, is there a way of disabling this?

TCP/IP is a stream based system, in other words it ensures that what you
send out of one computer arrives at the other computer in the right order,
and without any data missing or duplicated.

The way to get around your problem is to put your messages into your own
'packets'.  This means you start each message with a byte or two which
determine the size of the message.  When you receive a message you can read
this, then wait for the right size to be imported into your buffer.  Then
you extract the right size of data, and process it.  There may be some data
in the buffer - which is the start of the next message.

Hope this helps.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to