Article View: borland.public.cppbuilder.internet.socket
Article #4241Re: Send a file over TCP Socket
From: Hans Galema
Date: Tue, 08 Mar 2005 10:38
Date: Tue, 08 Mar 2005 10:38
14 lines
1544 bytes
1544 bytes
lakis wrote: > what changes should be made to this code in order to see also to the client > and to the server side > the download speed and the bytes remaining....i can post remys code again if > neccessary. Well what is the problem with that ? On the sending side you can leave all code as it is. You know at forehand the size of the data. A while loop is used to send chuncks of data. So at every moment you know how much is sent. If you use GetTickCount() you know bytes/ms. So you only have to ad some code in that loop. Hans.
Technical Details
Message-ID:
<422d80f9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<422c18f6@newsgroups.borland.com> <422c79c0@newsgroups.borland.com> <422d7907@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9d46177051bb3960 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 08 Mar 2005 11:38:04 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Send a file over TCP Socket References: <422c18f6@newsgroups.borland.com> <422c79c0@newsgroups.borland.com> <422d7907@newsgroups.borland.com> In-Reply-To: <422d7907@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <422d80f9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1110278393 129.125.201.248 (8 Mar 2005 02:39:53 -0800) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail