Re: [twsocket] Multiple FTP Clients
Hi Graham, Yes TFileStream will use disk. If you have only small transfers you can do as you do now. If you worry about speed then you could gain speed a lot by using pointers to your own memory location instead of TStream. -- mvg, Wilfried http://www.mestdagh.biz -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens GRAHAM (Deephaven) Verzonden: vrijdag 16 april 2010 8:30 Aan: 'ICS support mailing' Onderwerp: Re: [twsocket] Multiple FTP Clients Doesn't TFileStream imply that the data will be transferred to the disk. I want to avoid any disk activity and get the data as fast as possible into the application. The size of any data transfer will only be a few tens of kilobytes at most. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: 16 April 2010 05:56 To: ICS support mailing Subject: Re: [twsocket] Multiple FTP Clients easier to use the multiple FTP clients to solve my problem. The first attempt seems to have a problem (problem something stupid I'm doing). I have 2 FTP clients and created 2 memory streams. If both FTP clients connect and then disconnect, when I free the second memory stream I get an error. If only one FTP client connects and disconnects, I can free both memory streams. Obviously doing something dim. There is a bug in your code obviously. You are probably referencing the wrong stream. btw: Usually one use TFileStream for FTP because you have potentially very large files which could result in out of memory errors if you use a TMemoryStream. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
When I investigated this single socket connection some years ago I just used a standard Delphi client socket with the standard FTP commands. It is now easier to use the multiple FTP clients to solve my problem. I am currently at a convention and spoke to the server vendor and he agreed this idea was a good solution. The first attempt seems to have a problem (problem something stupid I'm doing). I have 2 FTP clients and created 2 memory streams. If both FTP clients connect and then disconnect, when I free the second memory stream I get an error. If only one FTP client connects and disconnects, I can free both memory streams. Obviously doing something dim. Graham -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 14 April 2010 07:32 To: twsocket@elists.org Subject: Re: [twsocket] Multiple FTP Clients I am attempting to transfer and process a lot of files via a memory stream. Conventional FTP seems to take about 200mS per transfer. Possibly due to the opening and closing of the data socket for each transfer. This speed is as expected, the port for each data socket has to be negotiated, then the TCP stream opened. The same speed issue occurs listing files in multiple directories, it can take several minutes to parse a complex directory structure one at a time. It's why the ICS FTP client and server have new FTP directory commands, XCMLSD which lists directories using the control channel, and XDMLSD which combines multiple directory listings into a single download. Do you have a specification for this UNIX server that sends data files on the control connection, or a command log? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overb -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
easier to use the multiple FTP clients to solve my problem. The first attempt seems to have a problem (problem something stupid I'm doing). I have 2 FTP clients and created 2 memory streams. If both FTP clients connect and then disconnect, when I free the second memory stream I get an error. If only one FTP client connects and disconnects, I can free both memory streams. Obviously doing something dim. There is a bug in your code obviously. You are probably referencing the wrong stream. btw: Usually one use TFileStream for FTP because you have potentially very large files which could result in out of memory errors if you use a TMemoryStream. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
I am attempting to transfer and process a lot of files via a memory stream. Conventional FTP seems to take about 200mS per transfer. Possibly due to the opening and closing of the data socket for each transfer. This speed is as expected, the port for each data socket has to be negotiated, then the TCP stream opened. The same speed issue occurs listing files in multiple directories, it can take several minutes to parse a complex directory structure one at a time. It's why the ICS FTP client and server have new FTP directory commands, XCMLSD which lists directories using the control channel, and XDMLSD which combines multiple directory listings into a single download. Do you have a specification for this UNIX server that sends data files on the control connection, or a command log? Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Multiple FTP Clients
I use the ICS FTP client to connect to an FTP server running on Linux. 1: This server has the ability to run in a simple FTP mode that only uses the control socket for all transfers. Is there a way I can configure the ICS FTP Client to operate like this? 2: In another situation, connecting to the same FTP server, I would like to have two FTP clients in my application, both logged on to the same server with the same username and password. Then each FTP client would navigate to different directories and download files in parallel. The server allows the login but are there any fundamental reasons why this would not work? Thanks for any help Graham -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
I use the ICS FTP client to connect to an FTP server running on Linux. 1: This server has the ability to run in a simple FTP mode that only uses the control socket for all transfers. Is there a way I can configure the ICS FTP Client to operate like this? This is not FTP and is not supported by the FTP component. But of course there is no problem if you want to support this special protocol using TWSocket. 2: In another situation, connecting to the same FTP server, I would like to have two FTP clients in my application, both logged on to the same server with the same username and password. Then each FTP client would navigate to different directories and download files in parallel. The server allows the login but are there any fundamental reasons why this would not work? No problem, just use several FTP client component either dropped on your form or created dynamically and operate them using the asynchronous functions (GetAsync and the likes). You'll be able to support any number of concurrent FTP session to the same server or to different servers. You are only limited by the resources your computer has and the resource the servers have. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
1. I've never heard of the FTP protocol allowing this, perhaps it's Trivial FTP? Don't know if ICS supports TFTP 2. Sure you can do this, just create two client controls at design time or dynamically on demand at run time. Lester On 13/04/2010 15:52, GRAHAM (Deephaven) wrote: I use the ICS FTP client to connect to an FTP server running on Linux. 1: This server has the ability to run in a simple FTP mode that only uses the control socket for all transfers. Is there a way I can configure the ICS FTP Client to operate like this? 2: In another situation, connecting to the same FTP server, I would like to have two FTP clients in my application, both logged on to the same server with the same username and password. Then each FTP client would navigate to different directories and download files in parallel. The server allows the login but are there any fundamental reasons why this would not work? Thanks for any help Graham -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
Francois PIETTE wrote: No problem, just use several FTP client component either dropped on your form or created dynamically and operate them using the asynchronous functions (GetAsync and the likes). You'll be able to support any number of concurrent FTP session to the same server or to different servers. You are only limited by the resources your computer has and the resource the servers have. I would also add the obvious caveat that your application should coordinate which files are being transferred so that the FTP components don't collide with each other. dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
Maybe it is SFTP--FTP over SSH?! SZ On Tue, Apr 13, 2010 at 7:54 PM, Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk wrote: This server has the ability to run in a simple FTP mode that only uses the control socket for all transfers. 1. I've never heard of the FTP protocol allowing this, perhaps it's Trivial FTP? Don't know if ICS supports TFTP Trivial FTP uses UDP, it really has nothing in common with FTP using TCP. Normal FTP will run with the control socket only provided you don't attempt any data transfers or directory listings, except those special ones that only use the control socket. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
Fastream Technologies wrote: Maybe it is SFTP--FTP over SSH?! Perhaps, but it is still not FTP and not supported by ICS. dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
1. Is there a reason you want/need to do this? If not, don't complicate your life. 2. Others have responded sufficiently to this. Thanks, Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of GRAHAM (Deephaven) Sent: Tuesday, April 13, 2010 09:53 To: 'ICS support mailing' Subject: [twsocket] Multiple FTP Clients I use the ICS FTP client to connect to an FTP server running on Linux. 1: This server has the ability to run in a simple FTP mode that only uses the control socket for all transfers. Is there a way I can configure the ICS FTP Client to operate like this? 2: In another situation, connecting to the same FTP server, I would like to have two FTP clients in my application, both logged on to the same server with the same username and password. Then each FTP client would navigate to different directories and download files in parallel. The server allows the login but are there any fundamental reasons why this would not work? Thanks for any help Graham -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Multiple FTP Clients
I recall asking for support of this on server side long time ago but have lost interest since then. SZ On Tue, Apr 13, 2010 at 8:13 PM, DZ-Jay d...@caribe.net wrote: Fastream Technologies wrote: Maybe it is SFTP--FTP over SSH?! Perhaps, but it is still not FTP and not supported by ICS. dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be