[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

[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

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

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

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" Sent: Monday, October 24, 2005 11:55 AM Subject: Re: [twsoc

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 bel

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Angus Robertson - Magenta Systems Ltd
> You could probably simply overload GetFileSize() and DecodeMlsResp() > as well. Was overloading supported in Delphi 1? To support 14 or more different compilers with the same source code makes for complicated, difficult to read code. And is unnecessary. Thee way to simplify it is to supp

Re: [twsocket] 64-bit FTP support

2005-10-24 Thread Arno Garrels
Francois Piette wrote: >> 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 compi

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

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

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" Sent: Monday, October 24, 2005 11:13 AM Subject: [twsocket] Making TFtpServer MT: the prope

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: > > http://www.magsys.co.uk/

[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) { releaseCri