[twsocket] Making TFtpServer MT: the proper way

2005-10-24 Thread Fastream Technologies
Hello, I want to make our async FTP server, one thread-per CPU MT design. We assign threads to instances in OnClientConnect, and I have the following code: void __fastcall ftpServerThread::FtpServerClientConnect( TObject *Sender, TFtpCtrlSocket *Client, WORD AError) {

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: I've finished updating the ICS FTP client and server components to support 64-bit streams and thus single files larger than 2 gigs, when used with Delphi 6 and later. The updated components may be downloaded from:

Re: [twsocket] Making TFtpServer MT: the proper way

2005-10-24 Thread Fastream Technologies
IOW, what is the proper way to assign a worker thread to a Ftp Client instance? Best Regards, SZ - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 24, 2005 11:13 AM Subject: [twsocket] Making TFtpServer

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Angus Robertson - Magenta Systems Ltd
Angus, I took a brief look at your code (btw: I couldn't find it in the new ICS Beta from yesterday). Nor I, it's been lost. Large files can only be used in the client with TFileStream, since THandleStream and TMemoryStream don't support sizes larger than 2 gigs, THandleStream

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Francois Piette
I think it can be simplified, without an own Seek64-function just by a new custom integer type that would be of Type Int64 in D6 and above. Yes, that's what I told to Angus when I saw his code. Introducing this datatype would dramatically reduce conditional compilation. -- [EMAIL PROTECTED]

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: You could probably simply overload GetFileSize() and DecodeMlsResp() as well. Was overloading supported in Delphi 1? No idea, however you could also move condional compilation into the various helper functions some like the untested lines below.

Re: [twsocket] Making TFtpServer MT: the proper way

2005-10-24 Thread Fastream Technologies
I think I found out. I used the OnClientConnected to attachthread and OnClientDisconnected. Seems working now. Thanks anyway, SZ - Original Message - From: Fastream Technologies [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, October 24, 2005 11:55 AM

[twsocket] Why am I getting a OnConnect-Event

2005-10-24 Thread Andreas Patock
Hi, I wonder why I'm getting a OnConnect/OnDisconnect-Couple even though the Server is not reachable? If I try to connect to a server which is not reachable (because I pull the cable), the client gets an OnConnect followed directly by an OnDisconnect-Event. Is this true or is there an error in

Re: [twsocket] Why am I getting a OnConnect-Event

2005-10-24 Thread Francois Piette
I wonder why I'm getting a OnConnect/OnDisconnect-Couple even though the Server is not reachable? If I try to connect to a server which is not reachable (because I pull the cable), the client gets an OnConnect followed directly by an OnDisconnect-Event. Is this true or is there an error in

[twsocket] Antwort: Re: Why am I getting a OnConnect-Event

2005-10-24 Thread APatock
Sorry Francois, I totally ignored the error code. I are absolutly right. _always_ check this error code. Thank you. -- 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