Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, if you execute a component in thread context taht need a message pump (like TWSocket) then you have to pump messages. TWSocket has this on board, so that's the proposed method. The message pump (you can write your own of course) I proposed will break his loop if a WM_QUIT message arri

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Nick
Great :-) That all made sense except this line HttpCli.CtrlSocket.MessagePump; // will break if WM_QUIT What does that mean / do? Thanks a lot. Regards Nick > Hello Nick, > >> things at once - do I have to drop 4 HttpCli components on the form or >> can I create them at run time? > > If you d

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, > things at once - do I have to drop 4 HttpCli components on the form or > can I create them at run time? If you drop themon a form then they are created and so will operate in main thread context. > and you can't use 1 HttpCli to download two > things at once No but you can use 4 H

[twsocket] Using HTTPCli in threads

2005-10-24 Thread Nick
Hi there, I guess it could mean any component really, but I am looking at using HttpCli in a project that works with threads, to do with downloading. Now the user can specify 1-4 threads, as each thread needs to download things and you can't use 1 HttpCli to download two things at once - do I h