With my file list the system work. Your suggestion is Ok but I think better to add a flag at the end of file because the stream read from the beginning of the file. The flag can be a string as "Robert" for example thus is not necessary to control the size.

Rgds
Robert
----- Original Message ----- From: "Nicholas Sherlock" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Monday, April 04, 2005 9:37 PM
Subject: Re: [twsocket] HTTPClient



But how do you know if you have all of that file downloaded? :). Suggestion: First bit of file is an integer which contains the file length. If you download less than 4 bytes, it's incomplete. If you download more than 4 bytes, you now know what the length of the file should be and can check it.

Cheers,
Nicholas Sherlock

GSE Sas wrote:

I'm very unlucky. At last I've added a file containing all file name and size. Obviously I must download this file before.

Tks too.
Robert


-- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be




-- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Reply via email to