> - if the client sends requests as a huge bulk
>   (e.g. 10.000 requests in a relatively [not completely] tight loop)
>   the statistics don't get updated for a while
> - in OnDataAvailabe check whether at least 1 sec. has been elapsed 
> and the manually call OnTimer.

I've done that, the OnTimer event sets a variable from GetTickCount each 
time it runs, and other events can check the timer event has been called 
recently and if not do so.  I have a little library of Tick timer 
related functions including checking the 49 day wrap around.  Wonder if 
64-bit Windows has a GetTickCount64?

But in your case, if OnData events are firing, OnTimer should as well?

Angus


-- 
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