Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jan : Re: Monitor the reading?
| Subject: | Re: Monitor the reading? |
| Posted by: | "York" (offi..@onlinebg.info) |
| Date: | Wed, 18 Jan 2006 07:18:18 |
Thanks Remy. I did so.
One more issuse ...
I need to show each in each client application the inbound internet
bandwidth for each reading operation.
Each server write operation consists of writing a header - TCommand and
additional data. At the client side I do the following:
tcpFile.ReadBuffer(Command, SizeOf(TCommand));
FStartTime := GetTickCount;
if Command.DataSize > 0 then
tcpFile.ReadStream(Ms, Command.DataSize);
FEndTime := GetTickCount;
FBytesReceived := Ms.Size;
After that I know the time for receiving FBytesReceived bytes in msecs and I
make further calculations.
Is this the right way to calculate the bytes-per-sec bandwidth? If not,
could you please give me an advise how to do this.
Thanks.
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43cd5be7$1@newsgroups.borland.com...
>
> "York" <office@onlinebg.info> wrote in message
> news:43cb2809@newsgroups.borland.com...
>
> > I ma using Indy9 and I need to implement something like
> > a progress indicator for reading operations.
>
> Use the OnWork... events.
>
>
> Gambit