> 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.
> --------------------------------------------------------------------------
I should have mentioned in my original email that we are using text
based messages from TClientSocket / TServerSocket i.e
CSocket.SendText('This is my text');
Rob
Steven Wild
Director
Wild Software Ltd
P O Box 33-216
Christchurch, NZ
Ph & Fax 64 3 377-0495
_______________________
Chreos Business Systems
_______________________
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz