Hello,

----- Original Message ----- 
From: "Angus Robertson - Magenta Systems Ltd" <[EMAIL PROTECTED]>
To: <twsocket@elists.org>
Sent: Thursday, March 15, 2007 7:04 PM
Subject: [twsocket] Threads


> While I avoid threads in server applications, I'm writing a new tool that 
> will
> be contacting up to 100 remote servers (but only a dozen or so 
> simultaneously)
> and using telnet, HTTP and FTP to upload and download files and run shell
> commands, and I think it can only be sensibly be done with threads.

Other than shell commands in which you really need 1 thread/each connection, 
you do not need 1 thread/HTTP/FTP connection. My suggestion would be to open 
1 thread per CPU core.

>
> I'm using ICS V6 and I know I need MessageLoop in the thread execute 
> method,
> and presumably, MultiThreaded=true, ThreadAttach and ThreadDetach for each 
> of
> different components, including FtpClient.ControlSocket and
> FtpClient.DataSocket, or is any of this automatic?

If you create the instances in TThread.Execute, all is auto except the 
MultiThreaded=true. I would also recommend NOFORMS definition.

Best Regards,

SZ

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

-- 
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
  • [twsocket] Threads Angus Robertson - Magenta Systems Ltd
    • Re: [twsocket] Threads Fastream Technologies

Reply via email to