Hello, I am currently trying to implement a HTTP file streaming server using tHttpServer and I'd like to know if anybody has some advice regarding the use of threads.
I know that it's basically possible to use tHttpServer without threads but I suppose that threads are needed in my case because I'd like to - deliver multiple files of 10-200MB size towards the clients simultaneously - limit the throughput for some type of file content (throttling) So what is the best way to implement a HTTP server like this? Should I start a thread for each client generally (like the ICS example "ThrdSrv.dpr" does) or is it meaningful to start a thread inside of the HTTP GET event handler only if some content type is detected? How can I implement throughput throttling? Is it more or less done by putting a call to Sleep() into ConnectionDataSent()? Any hints and shared experiences are welcome. Regards, Tobias -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be