Each throttler requires a different interval. Perhaps a timer of 1ms interval can cover all?
Regards, SZ ----- Original Message ----- From: "Dod" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, January 18, 2006 5:00 PM Subject: Re: [twsocket] fast data sending > Hello, > > Why not create a single timer that will scan every second a list of > transfered bytes values for each connection ? > > AG> Wilfried Mestdagh wrote: >>> Hello Fastream, >>> >>> You can easely create thousands of TTimers, but you have to taken all >>> limits into account. From the moment you enable a TTimer a hidden window >>> is created. disabling the TTimer also destroy that window. So the window >>> is only there for a short time (while TTimer is running). >>> >>> On the other hand you dont have to do it with TTimer. You can easy >>> create your own timer that does not need any window. See SetTimer in API >>> help. > > AG> Yes, you can register any window that will then receive timer > messages, > AG> but I think timers are limited as well, at least in Win9x, has it > changed? > > > AG> --- > AG> Arno Garrels [TeamICS] > AG> http://www.overbyte.be/eng/overbyte/teamics.html > >>> >>> --- >>> Rgds, Wilfried [TeamICS] >>> http://www.overbyte.be/eng/overbyte/teamics.html >>> http://www.mestdagh.biz >>> >>> Wednesday, January 18, 2006, 09:41, Fastream Technologies wrote: >>> >>> >>>> ----- Original Message ----- >>>> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> >>>> To: "ICS support mailing" <twsocket@elists.org> >>>> Sent: Wednesday, January 18, 2006 10:36 AM >>>> Subject: Re: [twsocket] fast data sending >>>>> I dont mean TTimer, because that TTimers are limited recourse, also >>>>> each >>>>> Timer create a hidden window also limited. So in your case using >>>>> TTimers >>>>> will get you probably out of recourses. >>> >>>> I asked a few days ago to Francois if the TTimer code of HttpCli could >>>> be >>>> used in THttpConnection (web server client connections) for thousands >>>> of >>>> clients and he said yes. Now you say it is not feasible just as I >>>> thought. Could you point me to some locations for reading about this? >>>> Is >>>> there a workaround for this problem? >>> >>>> I need to throttle web connections with different speeds based on the >>>> domain/folder/username they access. That's it. I use multiple >>>> connections >>>> per thread design. >>> >>>> Regards, >>> >>>> SubZero > > -- > 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