Think of it as like reading a binary disk file. As long as you know enough
about the structure you should be able to decode it into records as you
read it. This is complicated by not having everything available immediately
at the start, but with a bit of thought you can work around this. A simple
way to send the data would be to write sizeof(record), then the actual
record. If you get all the bytes, TCP/IP ensures the integrity of them.

>Hokay, - how can I tell when I have received a full record- ie all packets
have been received from the clients send (multiple packets make a full
record.)?
<

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

Reply via email to