|Subject:||Speed reporting in Intercept...|
|Posted by:||Dennis (firstname.lastname@example.org)|
|Date:||Wed, 06 Sep 2006|
*Sigh* okay.. I give up. Anyone know a good way of reporting the speed
per second when using intercept throttler?
I'm using Indy 10.1.5 with Windows XP SP2, Delphi 7.
The intercept throttler pauses depending on the buffersize. So lets say
32KB buffer, and you want 4KB/s, the delay in milliseconds would be: 8000
(or 8 seconds). That's correct but, when having a timer check how much
data was moved on that interval, it will report: 0, 0, 0, 0, 0, 0, 0,
Using the throttler it pauses before it sends the entire buffered data,
when the client could be processing those 4KB/s ..
- I could limit the buffersize if < 32KB/s (or some size) to match up
with the rate per second. Using this approach would lose the effects of a
buffer.. But would it matter anyway if that small of rate was chosen
- Keep the buffers, but use average speed per second display (would
rather not, it's a professional application) and would rather have the
client (that's connecting to the server) get all the necessary data per
- Through the intercept calls, send the data and split the chunks as
necessary on second boundaries (without giving the original IOHandler
- Write my own IOHandler