Hello Wilfred,

Main question is "why use threads ?" ICS main advantage is to work in
non threaded model, just create 10, 20, 30 instances of THHPCli and
connect them :-)

WO> Hello

WO> I am new to ICS. I wish to use the HTTPCli component in a multithreaded 
WO> application to test the response from websites. Any thread within the 
WO> application may use an HTTPCli object to make such a test.

WO> My preferred approach would be: within a thread, create an HTTPCli object 
WO> dynamically using the create method, and set the URL property. Then set 
WO> handlers for onDocData, and onRequestDone and retrieve the page using the 
WO> Get() function. Use an exception handler to trap any problem with Get().

WO> - Do you see any potential problems with this, given that it will occur in 
a 
WO> multithreaded environment?
WO> - Are there any problems with having multiple HTTPCli objects running in 
WO> multiple threads as described?
WO> - Also, do I need to set the multithreaded property to true?

WO> Thank you in advance for any assistance you can give.

WO> Wilf

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