Re: [twsocket] TFtpClient transfer time...

2011-07-24 Thread Arno Garrels
zayin wrote: > Hello, > > Thanks Arno. The speed increase was almost double. > >> Please let me know how it works for you, does it slow down > performance when you have plenty of small files to transfer? > > Not sure. The files I am sending, normally just two, are all large > installer files. >

Re: [twsocket] TFtpClient transfer time...

2011-07-24 Thread zayin
Hello, Thanks Arno. The speed increase was almost double. > Please let me know how it works for you, does it slow down performance when you have plenty of small files to transfer? Not sure. The files I am sending, normally just two, are all large installer files. > Maybe we should make these s

Re: [twsocket] TFtpClient transfer time...

2011-07-24 Thread Arno Garrels
Arno Garrels wrote: > > My test: ICS 7.3 MB/s and FileZilla 12.0 MB/s in a 100 Mbit LAN. > After I set DataSocket's winsock send and receive buffer size > to 32768 (default 8192) speed notably increased to 11.4. The receive buffer doesn't matter here of course :) > I uploaded this changed Overb

Re: [twsocket] TFtpClient transfer time...

2011-07-24 Thread Arno Garrels
Arno Garrels wrote: > After I set DataSocket's winsock send and receive buffer size > to 32768 (default 8192) speed notably increased to 11.4. The reason for this increase is that TryToSent less often hits socket error WSAWOULDBLOCK see also: http://support.microsoft.com/kb/823764/en-us -- Ar

Re: [twsocket] TFtpClient transfer time...

2011-07-24 Thread Arno Garrels
zayin wrote: > Hello, > > I am using TFtpClient, version 7.12 to transfer a single file. The > elapsed time is over 4 1/2 minutes. When I transfer the same single > file with FileZilla the elapsed time is 2 1/2 minutes. My test: ICS 7.3 MB/s and FileZilla 12.0 MB/s in a 100 Mbit LAN. After I set

Re: [twsocket] TFTPClient

2010-11-24 Thread Francois PIETTE
If the file exist on the server I do not want to overwrite the file. I want to abort the transfer. Is that possible? This is not a client issue, but a server issue. usually FTP server allows overwriting existing files. Or do I need to check if the file exists before TFTPClient.Tansmit? Ye

Re: [twsocket] TFTPClient

2010-11-23 Thread Fastream Technologies
Hello, I think the MLST command is the easiest for the purpose since it is used just for single file querying. Regards, SZ On Tue, Nov 23, 2010 at 11:16 PM, zayin wrote: > Hello, > > Thanks for the answer. > > I might have put the question wrong. > > If the file exist on the server I do not w

Re: [twsocket] TFTPClient

2010-11-23 Thread zayin
Hello, Thanks for the answer. I might have put the question wrong. If the file exist on the server I do not want to overwrite the file. I want to abort the transfer. Is that possible? Or do I need to check if the file exists before TFTPClient.Tansmit? If I need to check first, what is the best

Re: [twsocket] TFTPClient...

2010-11-23 Thread Francois PIETTE
I think this is my last question for TFTPClient. Is there a way to prevent the overwriting of the file if it exists on the server? Overwrite seems to be the default. You may upload using a temp filename and after upload delete the existing one and rename the temp file. -- francois.pie...@over

Re: [twsocket] TFTPClient...

2010-11-23 Thread zayin
Hello, >> What are the "dataportrangeend" and "dataportrangestart" properties in the... >As you may already know, FTP is using TWO ports: one for commands and one >for data. And for data, a FTP client act as a server : unless you select >passive mode, a FTP client accept data connection from th

Re: [twsocket] TFTPClient...

2010-11-23 Thread Francois PIETTE
What are the "dataportrangeend" and "dataportrangestart" properties in the TFTPClient component? I searched and could not find any description. I see them mentioned in a FAQ but no description. What I need to do is allow the user to specify a local port number. If I set both of the above propert

Re: [twsocket] TFTPClient...

2010-11-19 Thread zayin
Hello, Thank you both for the answers. Ciao, Mark -- 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] TFTPClient...

2010-11-19 Thread Francois PIETTE
What is the "account" property in the TFTPClient component? I searched and could not find any description. Account is the property sent using the Acct method, which is an FTP command. Most FTP servers are happy with just a user name, rather than needing an account as well, but it's a very old

Re: [twsocket] TFTPClient...

2010-11-19 Thread Angus Robertson - Magenta Systems Ltd
> What is the "account" property in the TFTPClient component? I > searched and could not find any description. Account is the property sent using the Acct method, which is an FTP command. Most FTP servers are happy with just a user name, rather than needing an account as well, but it's a very ol

Re: [twsocket] (TFtpClient) Parsing list. Help, help.

2010-06-04 Thread newsgate
Thanks for example. Thanks for Lionel Rault and Anton Sviridov. -- 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] (TFtpClient) Parsing list. Help, help.

2010-06-03 Thread Anton Sviridov
Hello! Here's routine from TurboPower iPRO component pack which I improved a bit { Set properties from Unix style line of directory listing } procedure TIpFtpFileInfo.UnixStyleParse(Info : TStringList); var S, A : string; i, idx : Integer; wYear, wMonth, wDay, wHour, wMin, shit: Word; fs:

Re: [twsocket] (TFtpClient) Parsing list. Help, help.

2010-06-03 Thread Eric-Lionel Rault
And it is well. I will show the result. -rwx-- 1 user group 311521 May 29 07:33 1.jpg -rwx-- 1 user group 311521 May 29 07:38 2.jpg drwx-- 1 user group 0 Jun 03 16:13 test1 I can not read the date of file ' May 29 07:33' should be '2010-05-29 07:33:00' how

Re: [twsocket] TFTPClient in Free pascal

2010-04-10 Thread Francois PIETTE
I am trying to use TFTPClient in FreePascal. I have used twSocket successfully but the FTPClient will not compile because when trying to link the ICSZLibObj it comes up with "Error: IllegalCOFF Magic while reading C:/xxx/adler32.obj". (every external obj comes up with that error). I have trying

Re: [twsocket] TFtpClient and SocksServer, Bug or Feature?

2008-12-06 Thread Angus Robertson - Magenta Systems Ltd
> using TFtpClient with ConnectionType = ftpSocksX we probably need > to reassign SocksProperties before each FDataSocket.Connect. > Because after first Close of DataSocket this properties will be > resetted (see Wsocket.pas, procedure > TCustomSocksWSocket.AssignDefaultValue;) so only first co

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
I don't know why, but the problem is suddenly gone - after some tests it's not occurs anymore with 7.0.1.325 (but still with 6.0.2.621 on other PC) and as I can see even ftp client/server works speedier as before. Many thanks to everybody who have tried to help me and good start into the new w

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Arno Garrels
asvetov wrote: > Just updated to 7.0.1.325 The same problems. But I have noticed > important thing: the problem not occurs if PC is NOT connected to the > LAN/Router (really unplugged stand alone). If PC is connected to the > LAN/Router (no matter if client and server on the same machine) the > pro

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
Just updated to 7.0.1.325 The same problems. But I have noticed important thing: the problem not occurs if PC is NOT connected to the LAN/Router (really unplugged stand alone). If PC is connected to the LAN/Router (no matter if client and server on the same machine) the problems occurs. 09.03.

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Arno Garrels
asvetov wrote: > Have you tried all in passive mode? Yes. > I've > WinXP Pro (not virtual) with Kaspersky IS 7.0.0.125 (actual version). W2K SP4, IS 7.0.1.325 downloaded today from their German website. > As I said with 7x it happens not always, but this way I can reproduce > the problem in 99

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
Thank you for trying that! Have you tried all in passive mode? I've WinXP Pro (not virtual) with Kaspersky IS 7.0.0.125 (actual version). As I said with 7x it happens not always, but this way I can reproduce the problem in 99%: on the server side I create directory structur with about 100 subdir

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Arno Garrels
asvetov wrote: > I've reproduced this problem yesterday and I did it right now again > (many times). > > start OverbyteIcsFtpServ.exe from your archive. > start xferdemo2.exe -> activate options: No Feta, No Mode Z, No > MD5/CRC Check, No TMP File for UP/DOWN, all diagnostics level > activated ->

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Angus Robertson - Magenta Systems Ltd
> What can I say. Great. But don't you think we just can't say to our > users "sorry, works fine..."? You have now detailed Logs from YOUR > own application and don't want at least to try to reproduce this? Reproduce is the operative word. I can not, and this is not something that I recall bei

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
What can I say. Great. But don't you think we just can't say to our users "sorry, works fine..."? You have now detailed Logs from YOUR own application and don't want at least to try to reproduce this? ... And yes, client and server on the same machine is not "real world" but the same problem occ

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Angus Robertson - Magenta Systems Ltd
> I've reproduced this problem yesterday and I did it right now again > (many times). Sorry, works fine on my PC using the same binaries, repeatedly. XP SP2 with Sophos anti-virus but no firewall software (I use a proper hardware firewall, Sonicwall TZ190). Connect/Logon to FTP Server: 127.0.0

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
I've reproduced this problem yesterday and I did it right now again (many times). start OverbyteIcsFtpServ.exe from your archive. start xferdemo2.exe -> activate options: No Feta, No Mode Z, No MD5/CRC Check, No TMP File for UP/DOWN, all diagnostics level activated -> click "Check Upload" -> t

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread Angus Robertson - Magenta Systems Ltd
> as I read in Archives (you discussion with > Francois), you use Synchronous mode and sleep. I do use synchronous mode, but I don't use sleep because that stops everything else running in the same application, and considerably slows down transfer speed. > Just create random > directory stru

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-09 Thread asvetov
I have two notebooks and I can reproduce this problem on both: on the first (Pentium M) the problems occurs as already described, on the second (Core Duo) the problem occurs seldom. As I said, mostly it comes if I use ftpWaitUsingSleep option in FTPCli. You can try to reproduce this, as I read i

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired

2008-03-08 Thread Angus Robertson - Magenta Systems Ltd
> once again: firewall is completely deaktivated. Background file > scanner too. But seems to be, that some Kaspersky componnents still > active and only when I complete deactivate protection works all > fine. On how many different PCs can you reproduce the fault with the latest V6 FTP versions

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Dod
Hello asvetov, Firewalls and Anti-virus are NEVER 100% disabled because they load low level drivers on system boot. So the only way for you to be sure that firewall is not involved in your problem is to uninstall it or you may reboot Windows in safe mode and temporary rename kl1.sys klf.sys

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread asvetov
Sorry, "with ANY server" is just not correct. With servers I've tested (FileZille server too). This is correct :) 08.03.08, 21:22, "Arno Garrels" <[EMAIL PROTECTED]>: > asvetov wrote: > > As I already said, other Clients work fine. > That is not a beating argument. Most other clients use block

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Arno Garrels
asvetov wrote: > I don't thing it has something to do with server. The problem occurs > with ANY server. So it's on the client side (FtpCli or Wsocket). So one problem less Still thinking... -- Arno Garrels > > > 08.03.08, 21:22, "Arno Garrels" <[EMAIL PROTECTED]>: > >> asvetov wrote: >>>

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread asvetov
I don't thing it has something to do with server. The problem occurs with ANY server. So it's on the client side (FtpCli or Wsocket). 08.03.08, 21:22, "Arno Garrels" <[EMAIL PROTECTED]>: > asvetov wrote: > > As I already said, other Clients work fine. > That is not a beating argument. Most ot

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread asvetov
once again: firewall is completely deaktivated. Background file scanner too. But seems to be, that some Kaspersky componnents still active and only when I complete deactivate protection works all fine. BTW: As for Kaspersky, I really like it and did my BEST experiense with it. 08.03.08, 20:52,

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Arno Garrels
asvetov wrote: > As I already said, other Clients work fine. That is not a beating argument. Most other clients use blocking winsock API, AFAIK only Filezilla uses non-blocking calls. Does it never happen with Filezilla client against ICS FTP server? If so, do you confirm that the ICS server isn

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread asvetov
As I already said, other Clients work fine. And yes, I can reproduce all with latest V6 - Server Protocol FtpServer (c) 1998-2008 F. Piette V1.10 Using: TWSocket (c) 1996-2007 Francois Piette V6.08 TFtpServer (c) 1998-2008 F. Piette V1.57 Winsock: Version 2.2 Wi

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Arno Garrels
Sounds more like somebody is blocking/intercepting the call to Connect? BTW: I do not use any real time AV scanners or other background security tools, it's my experience that they make more trouble than they help. Same applies to personal firewalls. They all hook the API function calls as they li

Re: [twsocket] TFtpClient, DataSocket.OnSessionClosed event is not always fired.

2008-03-08 Thread Angus Robertson - Magenta Systems Ltd
> I have sporadic problems with TFtpClient where OnSessionClosed > event of DataSocket not always fired. > I can reproduce this problem with all ICS Versions (5 and 6). Can you reproduce the problem using the latest V6 versions from this month, there are large number of server and client fixes:

Re: [twsocket] TFtpClient retrieve file size for progress bar

2007-02-15 Thread Michael Fritz
echnologies" <[EMAIL PROTECTED]> An: "ICS support mailing" CC: Betreff: Re: [twsocket] TFtpClient retrieve file size for progress bar > Hello, > > Some old FTP servers do not support the SIZE command as it is not > mandatory > in RFC959. Yuo will need to u

Re: [twsocket] TFtpClient retrieve file size for progress bar

2007-02-15 Thread Fastream Technologies
Hello, Some old FTP servers do not support the SIZE command as it is not mandatory in RFC959. Yuo will need to use a parser and parse LS response. Regards, SZ - Original Message - From: "Michael Fritz" <[EMAIL PROTECTED]> To: Sent: Thursday, February 15, 2007 12:20 PM Subject: [twsoc

Re: [twsocket] TFtpClient lrecl and recfm

2006-08-22 Thread Antonio Marcos Pereira
Ok! Thank you very much! Antonio On 8/22/06, Francois Piette <[EMAIL PROTECTED]> wrote: > > Use Quote() to send a literal command to the server. > > Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html > -- > [EMAIL PROTECTED] > Author of ICS (Internet Component Suite, freeware

Re: [twsocket] TFtpClient lrecl and recfm

2006-08-22 Thread Francois Piette
Use Quote() to send a literal command to the server. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message ---

Re: [twsocket] TFTPClient-> the command "ls"

2006-05-25 Thread Arno Garrels
I wrote: > Please find attached ZIP, FtpCommon.pas (9 KB, hopefully not deleted by Why is it not possible to attach such small files :( Anyway, I've uploaded the mentioned ZIP (which is not my work!) to: http://www.duodata.de/misc/delphi/FTPCommon.zip Arno Garrels -- To unsubscribe or change

Re: [twsocket] TFTPClient-> the command "ls"

2006-05-25 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > The command "ls" gives me a list with folders and files, but how can I > get the files or the folders only ? Please find attached ZIP, FtpCommon.pas (9 KB, hopefully not deleted by the listserver) helps a lot when you need to parse the returned file listing. I HAVEN'T

Re: [twsocket] TFTPClient-> the command "ls"

2006-05-25 Thread Francois PIETTE
> I want to program a FTP-Client, but the ICS-Client is not easy to use. That's not a component issue. It is how FTP protocol is working. The format of the directory list depends on the server you use. It is not specified in the standard. > How can I get more informations about the files on th

Re: [twsocket] TFtpClient Abort

2006-01-16 Thread Francois PIETTE
> 1) Is there any special reason, why in procedure > TCustomFtpCli.AbortAsync WSockets are Closed instead > of Aborted? No special reason. > If not, I would like to change calls to WSocket.Abort. Looks good. > 2) Also in this proc. DestroyLocalStream is called twice, > can I delete one of them

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-15 Thread Dan
- Original Message - From: "Cremaschi Marco - MEDICAE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, January 15, 2006 2:00 PM Subject: Re: [twsocket] TFtpClient - Quit never returns when not connected! > Hallo, I've a problem us

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-15 Thread Francois PIETTE
> Hallo, I've a problem using TftpClient. Is it related to the subject ? I guess no ! You should have opened a new thread with a proper subject. > I can't obtain a connection, if on a Lan there is a squid proxy server. > Why?? I can't tell you anything if you don't give more informations about

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-15 Thread Cremaschi Marco - MEDICAE
Hallo, I've a problem using TftpClient. I can't obtain a connection, if on a Lan there is a squid proxy server. Why?? 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.

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Francois PIETTE
turday, January 14, 2006 8:02 PM Subject: Re: [twsocket] TFtpClient - Quit never returns when not connected! > Francois PIETTE wrote: >>>>> FLastResponse := '200 OK not connected'; >>>> >>>> A "200" answer mean OK, let'

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Arno Garrels
Francois PIETTE wrote: FLastResponse := '200 OK not connected'; >>> >>> A "200" answer mean OK, let's continue. >>> Probably the message should better be: >>>"503 Bad sequence of commands. Not connected." >> >> As far as I understand, Quit should _not return any error when not >

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Francois PIETTE
>>> FLastResponse := '200 OK not connected'; >> >> A "200" answer mean OK, let's continue. >> Probably the message should better be: >>"503 Bad sequence of commands. Not connected." > > As far as I understand, Quit should _not return any error when not > connected, Yes, it looks reas

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Arno Garrels
Quit should _not return any error when not connected, wasn't it handled in other classes the same? > > -- > [EMAIL PROTECTED] > http://www.overbyte.be > > > > - Original Message - > From: "Arno Garrels" <[EMAIL PROTECTED]> > To: "ICS su

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Francois PIETTE
From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, January 14, 2006 11:44 AM Subject: Re: [twsocket] TFtpClient - Quit never returns when not connected! > Nonsense I mean: > > procedure TCustomFtpCli.SendCommand(Cmd : String)

Re: [twsocket] TFtpClient - Quit never returns when not connected!

2006-01-14 Thread Arno Garrels
Nonsense I mean: procedure TCustomFtpCli.SendCommand(Cmd : String); begin if Assigned(FOnCommand) then FOnCommand(Self, Cmd); TriggerDisplay('> ' + Cmd); if FControlSocket.State = wsConnected then FControlSocket.SendStr(Cmd + #13 + #10) else begin // Quit when not

Re: [twsocket] TFtpClient and directory listing

2005-11-18 Thread Angus Robertson - Magenta Systems Ltd
> However, does anyone have a small sample of code to retrieve a > directory, and - for example - place the contents into a listbox? You need to parse the directory listing returned, there are two common formats and several more less common. There are some functions at http://www.smatters.com/

Re: [twsocket] TFtpClient Timeouts?

2005-07-23 Thread Francois PIETTE
> What's the best way to detect if a timeout has occurred in a TFtpClient > operation? A TTimer. -- [EMAIL PROTECTED] 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:/

Re: [twsocket] TFTPClient upload problem

2005-05-18 Thread Woody \(TMW\)
From: "Guillaume MAISON" <[EMAIL PROTECTED]> > >Woody, i would suggest : > > FTP1.UserName := edUser.Text; > FTP1.Password := edPass.Text; > FTP1.HostName := edURL.Text; > try > if FTP1.Connect then begin > FTP1.TypeBinary; > FTP1.TypeSet; >... > >Binary and typeset are ftp commands

Re: [twsocket] TFTPClient upload problem

2005-05-18 Thread Guillaume MAISON
> Arno, > > I tried putting a call to TypeBinary just after filling in user,password and > host name but before opening the connection and it didn't change anything. > > FTP1.UserName := edUser.Text; > FTP1.Password := edPass.Text; > FTP1.HostName := edURL.Text; > FTP1.TypeBinary; > FTP1.

Re: [twsocket] TFTPClient upload problem

2005-05-18 Thread Woody \(TMW\)
From: "Arno Garrels" <[EMAIL PROTECTED]> >Woody (TMW) wrote: >> I am using the TFTPclient component in a small app I built for >> maintaining my web pages and files. For a long time, everything worked >> great. Well, I changed ISP's and so I had to move my web page over to the >> new location. Now,

Re: [twsocket] TFTPClient upload problem

2005-05-18 Thread Woody \(TMW\)
From: "Arno Garrels" <[EMAIL PROTECTED]> > >Do you explicitly call TypeBinary/TypeBinaryAsync? >It is not enough to set property Binary only. > No, I don't. When and where should I call this? Woody (TMW) -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.

Re: [twsocket] TFTPClient upload problem

2005-05-17 Thread Arno Garrels
Woody (TMW) wrote: > I am using the TFTPclient component in a small app I built for > maintaining my web pages and files. For a long time, everything worked > great. Well, I changed ISP's and so I had to move my web page over to the > new location. Now, whenever I upload my zip files to the ftp dir