Re: [twsocket] TWSocket Digest, Vol 219, Issue 3
Hi, On a LAN even if there is no FTPServer active the FTPClient takes 20 secs to timeout. I changed Timeout from 15 to 2 to no avail. I use FTPClient1.OpenAsync. Regards Allan ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ -- 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] FTP Timeout on LAN
Hi, Sorry, I forgot to put a subject during the last post. >> On a LAN even if there is no FTPServer active the >> FTPClient takes 20 secs to timeout. I changed Timeout >> from 15 to 2 to no avail. I use FTPClient1.OpenAsync. > Try with FtpTst sample program. > Try with Windows command line. On one machine the results of Command line timeout = 20 secs FtpTst timeout = 20 secs. On another machine Command line timeout = 45 secs FtpTst timeout = 45 secs. I also think on certain machines it is less than 1 second. My problem is that my application's FtpClient has to keep sending files to several nodes and its being 'not Ready' for so long is a problem. Please Advice Regards Allan ___ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ -- 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] Recognise FireWall
Hi, My Server application uses TFTPServer and TServerSocket. My Client application uses TFTPClient and TClientSocket. The client application tries to connect to the server application within a LAN. If the Server machine has a firewall running on it, how do I recognise it. I just get 10060 from client side and 426 from server side. Regards Allan ___ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk -- 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] sub: FTPServer Timeout
Hi, I am using Delphi 5 with ICS 1.42. My application runs within a LAN. If a machine (say M1) with a TFtpServer component is receiving a file from a TFtpClient (say machine M2) and the LAN wire is pulled out then the TFtpServer never resets the connection. I am able to send a file from a third machine (say machine M3) but not from M2, even though I reset the application on M2. error = 'connection aborted cannot STOR'. Ironically if application on M2 was terminated in between the transfer then M1 receives '426 connection closed' I want to know how can I refresh the FTPServer's one client connection. Regards Allan ___ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ -- 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] FTP slow on NAS
Hi , I have been successfully using TFTPServer + TFTPClient combination with good results. Now my need is to send data to a machine that has a NAS drive mapped onto it. Here the speed falls drastically. I have tried the following: 1) BulletProof FTP Server with mapped NAS as destination + WS_FTP Client, Combination transfers 10 seconds 2) ICS Sample FTP_Server with local drive as destination + FTP Tst as Client 7 seconds 3) ICS Sample FTP_Server with mapped NAS as destination + FTP Tst as Client slows down Speed (53 seconds) Below are the screens from the ICS sample programs Please advice Thanks Allan FTP Server Slow (NAS) * FtpServer (c) 1998-2005 F. Piette V1.06 Using: TWSocket (c) 1996-2005 Francois Piette V5.18 TFtpServer (c) 1998-2005 F. Piette V1.42 Winsock: Version 2.2 WinSock 2.0 Running ! Server started ! 10.10.10.191 connected < 10.10.10.191 USER NAS_Test > 10.10.10.191 331 Password required for NAS_Test. < 10.10.10.191 PASS abcd ! 10.10.10.191 User 'NAS_Test' is authenticated > 10.10.10.191 230 User NAS_Test logged in. < 10.10.10.191 PORT 10,10,10,191,5,5 > 10.10.10.191 200 Port command successful. < 10.10.10.191 STOR e:\a\a.zip > 10.10.10.191 150 Opening data connection for e:\a\a.zip. > 10.10.10.191 226 File received ok FTP Server fast (Local) *** FtpServer (c) 1998-2005 F. Piette V1.06 Using: TWSocket (c) 1996-2005 Francois Piette V5.18 TFtpServer (c) 1998-2005 F. Piette V1.42 Winsock: Version 2.2 WinSock 2.0 Running ! Server started ! 10.10.10.191 connected < 10.10.10.191 USER NAS_Test > 10.10.10.191 331 Password required for NAS_Test. < 10.10.10.191 PASS abcd ! 10.10.10.191 User 'NAS_Test' is authenticated > 10.10.10.191 230 User NAS_Test logged in. < 10.10.10.191 PORT 10,10,10,191,5,7 > 10.10.10.191 200 Port command successful. < 10.10.10.191 STOR d:\dsafe\a.zip > 10.10.10.191 150 Opening data connection for d:\dsafe\a.zip. > 10.10.10.191 226 File received ok FTPTst Slow (NAS) ** Winsock version 2.2 WinSock 2.0 Running Executing Requested Command < 220-Welcome to my Server < 220- < 220 ICS FTP Server ready. Session Connected, error = 0 Request 1 Done. StatusCode = 220 LastResponse was : '220 ICS FTP Server ready.' No error Executing Requested Command > USER NAS_Test < 331 Password required for NAS_Test. Request 2 Done. StatusCode = 331 LastResponse was : '331 Password required for NAS_Test.' No error Executing Requested Command > PASS abcd < 230 User NAS_Test logged in. Request 3 Done. StatusCode = 230 LastResponse was : '230 User NAS_Test logged in.' No error Executing Requested Command > PORT 10,10,10,191,5,5 < 200 Port command successful. > STOR e:\a\a.zip < 150 Opening data connection for e:\a\a.zip. < 226 File received ok ! 56896928 bytes received/sent in 53 seconds (1066000 Bytes/sec) Request 18 Done. StatusCode = 226 LastResponse was : '226 File received ok' No error FTP Tst Fast (Local) Winsock version 2.2 WinSock 2.0 Running Executing Requested Command < 220-Welcome to my Server < 220- < 220 ICS FTP Server ready. Session Connected, error = 0 Request 1 Done. StatusCode = 220 LastResponse was : '220 ICS FTP Server ready.' No error Executing Requested Command > USER NAS_Test < 331 Password required for NAS_Test. Request 2 Done. StatusCode = 331 LastResponse was : '331 Password required for NAS_Test.' No error Executing Requested Command > PASS abcd < 230 User NAS_Test logged in. Request 3 Done. StatusCode = 230 LastResponse was : '230 User NAS_Test logged in.' No error Executing Requested Command > PORT 10,10,10,191,5,7 < 200 Port command successful. > STOR d:\dsafe\a.zip < 150 Opening data connection for d:\dsafe\a.zip. < 226 File received ok ! 56896928 bytes received/sent in 7 seconds (7915000 Bytes/sec) Request 18 Done. StatusCode = 226 LastResponse was : '226 File received ok' No error __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] FTP slow on NAS (Allan Fernandes)
Hi, As I am using Delphi 5 currently, therefore I will not be able to try V6. Is there any difference in FtpClient's DataSocket.BufSize and RcvSize, because I have tried changing DataSocket.BufSize to no avail. Regards Allan __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] FTP slow on NAS
Dear Arno Garrels, >>When I said "client" I meant the client object on the server side or : >>TFtpCtrlSocket, property RcvSize. It is available in ICS V5 as well. Will try first thing in the morning and get back. Dear Francois Piette, >>What usually slow down a lot network transfert is the display. If you have a >>display at each packet, you'll have very poor performances. Activity logging >>will also reduce performance. The performance falls down about 8 times and that too I do not have any display on each packet etc. that could slow down the speed, also please note that the speed is good when destination is the servers local drive. Regards Allan __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] FTP slow on NAS
Hi, I tried increasing the RcvSize to 8192 and the transfer speed has doubled. Though this is very good the basic problem still remains Cases Tried : 1) Transfer to Drive Local to the FTPServer 5 Secs 2) Transfer to a Mapped Drive (mapped to another desktop) on FTPServer 10 Secs 3) Transfer to Mapped Drive (mapped to NAS Drive) on FTPServer 23 Secs. Please Advice Regards Allan __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] FTP slow on NAS
Hi, I know writing data across a network is slower than writing to the local disk therefore I put in case-2 which is 10 secs. What I need to understand is why a copy to NAS drive takes more than double the time as compared to a regular mapped drive. All the more worry is that other FTP utlities (ws_ftp -> Bulletproof) copy to NAS drive with speeds faster than copy to regular mapped drive, as rightly it should. Please advice Regards Allan __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] FTP Slow on NAS
Dear Sirs, Please do not give up on me ! At least give me a hint as to where I can look. My earlier mail was : I know writing data across a network is slower than writing to the local disk therefore I put in case-2 which is 10 secs. What I need to understand is why a copy to NAS drive takes more than double the time as compared to a regular mapped drive. All the more worry is that other FTP utlities (ws_ftp -> Bulletproof) copy to NAS drive with speeds faster than copy to regular mapped drive, as rightly it should. Please advice Regards Allan __ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html -- 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] Fwd: Date Time ?
Hi, I am using TSslFtpClient and and need the DateTime of remote files. >From what I understand the only way is via the Dir command. If so how do I parse list ? Is there fixed format ? Warmest Regards Allan -- 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] Resume in Magenta
Dear Angus, I am grateful to you for directing me to your Magenta components which work together with ICS. In fact it takes care of all the coding I was planning on doing. I cannot find out the support section therefore I am writing here as you are involved in both companies. Please let me know where I should write henceforth for Magenta support. Below is my query. _ I was trying out the MagFtp component and all seems well except the Resume. Please find below the Client and Server Log. In between I unplugged the Server LAN wire so as to break the Transfer. When I said to upload again it does not Resume. FTP Client Log -- 12-Apr-2013 11:19:00 Source Directory: c:\temp Connecting to FTP Server: Connect/Logon to FTP Server: allan-1:21 < 220-Welcome to my Server < 220- < 220 ICS FTP Server ready. FTP Session Connected to 192.168.0.50:21 > HOST allan-1 < 504 HOST unknown or not allowed. > USER ics < 331 Password required for ics. > PASS < 230 User ics logged in. 230 User ics logged in. > PWD < 257 "/" is current directory. Server Start-up Directory: / Xfer Base Directory: / > FEAT < 211-Extensions supported: < HOST < SIZE < REST STREAM < MDTM < MDTM MMDDHHMMSS[+-TZ] filename < MLST size*;type*;perm*;create*;modify*; < MFMT < MD5 < XCRC "filename" start end < XMD5 "filename" start end < CLNT < SITE INDEX;ZONE;CMLSD;DMLSD < MODE Z < XCMLSD < XDMLSD < UTF8 < LANG EN* < OPTS MODE;UTF8; < AUTH TLS;SSL; < CCC < PROT C;P; < PBSZ < 211 END 211-Extensions supported: HOST SIZE REST STREAM MDTM MDTM MMDDHHMMSS[+-TZ] filename MLST size*;type*;perm*;create*;modify*; MFMT MD5 XCRC "filename" start end XMD5 "filename" start end CLNT SITE INDEX;ZONE;CMLSD;DMLSD MODE Z XCMLSD XDMLSD UTF8 LANG EN* OPTS MODE;UTF8; AUTH TLS;SSL; CCC PROT C;P; PBSZ 211 END > CLNT ICS FTP Client V7.28 < 200 Noted OK. > OPTS UTF8 ON < 200 UTF8 ON Ok. UTF8 Opts: 200 UTF8 ON Ok. Succesfully logged onto FTP Server: ics > TYPE I < 200 Type set to I. > MODE S < 200 MODE S Ok > OPTS MODE Z LEVEL 8 < 200 MODE Z LEVEL set to 8 Ok. Succesfully logged onto FTP Server: ics > SYST < 215 UNIX Type: L8 Internet Component Suite UNIX Type: L8 Internet Component Suite Checking files already on FTP Server: / > MODE Z < 200 MODE Z Ok > CWD / < 250 CWD command successful. "/" is current directory. > PWD < 257 "/" is current directory. > PASV < 227 Entering Passive Mode (192,168,0,50,64,3). > XDMLSD -R < 150 Opening data connection for directory list. ! Download size, compressed 24 bytes, Uncompressed 16bytes < 226 File sent ok compressed size 24bytes, uncompressed size 16bytes ! 24bytes received/sent in 203 milliseconds Server Returned 1 Line(s), Bytes 16 for Directory: /, Format: ANSI /*.* not found Files listed OK, total found 0 took 0 secs Target Files on FTP Server Total Files Found: 0, Total size: 0 bytes Source Files Skipped 0 Selected Total Files 1, Total size 2.00 Gbytes Started FTP Upload to: allan-1 Check Exists c:\temp\Big.Dat Uploading File 1 of 1, c:\temp\Big.Dat to /big.dat, size 2.00 Gbytes > MODE S < 200 MODE S Ok > ALLO 2149467136 < 200 ALLO OK, 45889630208 bytes available. Saved File Resume Info c:\temp\Big_Dat.ftp > PASV < 227 Entering Passive Mode (192,168,0,50,64,4). ! Upload Size 2.00G > STOR big_dat.tmp < 150 Opening data connection for big_dat.tmp. FTP Session Closed - Connection aborted (10053) Finished, files uploaded OK: 0, failed: 1, skipped: 0 Total size uploaded 0 bytes, duration 2:24, average speed 0/sec No Connection to Server, Cancelled Uploading Files (3) Task Result: Failed No Connection to Server, Cancelled Uploading Files (3) // Here I disconnected LAN wire , waited for some time and reconnected. 12-Apr-2013 11:22:05 Source Directory: c:\temp Connecting to FTP Server: Connect/Logon to FTP Server: allan-1:21 < 220-Welcome to my Server < 220- < 220 ICS FTP Server ready. FTP Session Connected to 192.168.0.50:21 > HOST allan-1 < 504 HOST unknown or not allowed. > USER ics < 331 Password required for ics. > PASS < 230 User ics logged in. 230 User ics logged in. > PWD < 257 "/" is current directory. Server Start-up Directory: / Xfer Base Directory: / > FEAT < 211-Extensions supported: < HOST < SIZE < REST STREAM < MDTM < MDTM MMDDHHMMSS[+-TZ] filename < MLST size*;type*;perm*;create*;modify*; < MFMT < MD5 < XCRC "filename" start end < XMD5 "filename" start end < CLNT < SITE INDEX;ZONE;CMLSD;DMLSD < MODE Z < XCMLSD < XDMLSD < UTF8 < LANG EN* < OPTS MODE;UTF8; < AUTH TLS;SSL; < CCC < PROT C;P; < PBSZ < 211 END 211-Extensions supported: HOST SIZE REST STREAM MDTM MDTM MMDDHHMMSS[+-TZ] filename MLST size*;type*;perm*;create*;modify*; MFMT MD5 XCRC "filename" start end XMD5 "filename" start end CLNT SITE INDEX;ZONE;CMLSD;DMLSD MODE Z XCMLSD XDMLSD UTF8 LANG EN* OPTS MODE;UTF8; AUTH TLS;SSL; CCC PROT C;P; PBSZ 211 END > CLNT ICS FTP Client V7.28 < 200
Re: [twsocket] Resume in Magenta
Dear Angus, I tried uploading on a Internet FTP website and it works fine. Earlier I was checking on LAN for convenience. Sorry for the unnecessary trouble. Respects to the entire team. On Fri, Apr 12, 2013 at 12:52 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > In between I unplugged the Server LAN wire so as to break the > > Transfer. When I said to upload again it does not Resume. > > As you can see from the logs, all the commands to correctly resume the > upload are being sent, but the control connection appears to drop at that > point: > > !! FTP Error: FTP component not ready > > Without any time stamps in the log, it's not possible to see if this was > instant or after a timeout. > > There is a property FailRepeat that I usually set to three so a failed > attempt retries twice more automatically in case of transient errors. > > For testing resume, you don't need to use massive files, you can slow > down the transfer to 25K a second or something on your LAN so that you > can halt the transfer part way through more easily: > > FTP.BandwidthLimit := bandwidth * KBYTE ; > FTP.Options := Options + [ftpBandwidthControl] ; > > I've not specifically tested resume for a few years, I automatically FTP > hundreds of files to and from my public server daily, but it all just > works. If you can reproduce the problem with the TMagFtp v4 demo or DUN > Manager beta v3.10, I'll look into it. You can also have an account on > ics.ftptest.org which is the latest ICS v8 FTP server, although you > probably won't want to test gig uploads (there are gig files on it to > download). > > 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
[twsocket] MagFtp and SslContext
Hi, How do I specify Ssl Certificates in MagFtp component ? Regards Allan -- 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] MagFtp and SslContext
Hi Angus, My application is a LAN backup application and users want to use FTP to additionally secure their data. I do not have much knowledge about SSL but I presume SSL certificates are required if my client decides to use a FTPS site. Can you guide me, I did not fully understand you above email ? On Tue, Apr 16, 2013 at 2:20 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > How do I specify Ssl Certificates in MagFtp component ? > > Sorry, certificate chain and host checking was never fully implementing > in TMagFtp. There is a lot of commented out code, probably taken from > the ICS FTP client SSL demo, that could be restored, but it's untested, > and includes a modal dialog box that is not ideal for a component. > > 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] MagFtp and SslContext
That is a huge relief. Thank You. On Wed, Apr 17, 2013 at 12:10 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > I do not have much knowledge about SSL but I presume SSL > > certificates are required if my client decides to use a FTPS site. > > No, it is not necessary for client software to check SSL certificates to > use SSL connections, the data is still encrypted. Checking the > certificate is an extra level of security to ensure the data is coming > from the correct server. > > Certificate checking can be done, most of the code is there in TMagFtp, > but there is an extra overhead for each connection, and more errors to > handle if the certificate fails checks. > > Server software always needs a SSL certificate. > > 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
[twsocket] Need to Exclude Folder
Hi, I have an application for backup that works on LAN. All data is copied into a Folder and subfolders (please refer below pattern). Using MagFTP component I intend to syncronise the Local backup onto the FTP site (g:\Backups\*.*). My problem is that there is one folder that I need to exclude (g:\Backups\tempfiles\*.*). Is it possible without using the Single File Upload method ? g:\Backups\Comp-1\*.zip g:\Backups\Comp-2\*.zip g:\Backups\Comp-3\*.zip g:\Backups\tempfiles\ Regards Allan -- 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] Need to Exclude Folder
Thanks that worked. There is only one place in SelectCopyFileList() where you are assigning SrcFileRec^.FrFileCopy := FCStateSelect ; there I added my check of exclude folder using SrcFileRec^.FrFullName and put SrcFileRec^.FrFileCopy := FCStateNone as per your advice. Allan On Tue, Apr 23, 2013 at 3:07 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > I have an application for backup that works on LAN. All data is > > copied into > > a Folder and subfolders (please refer below pattern). Using MagFTP > > component I intend to syncronise the Local backup onto the FTP site > > (g:\Backups\*.*). My problem is that there is one folder that I > > need to exclude (g:\Backups\tempfiles\*.*). > > Is it possible without using the Single File Upload method ? > > TMagFtp has a string property IgnoreFileExt that allows you to specify a > semicolon delimited list of file extensions that will be ignored, ie > tmp;temp;bak. > > There is also a binary property SpecificFiles that allows a list of files > to be downloaded or uploaded, the files names are a | delimited list > passed in SrcFName. Beware I've not used this for a long time, can not > recall why it was added. > > I suspect what you really need to exclude a small number of files from a > large selection is a new event, somewhere after the calls to > fMagFileCopy.SelectCopyFileList. This function compares the source and > destination file directories and selects which will be transferred. You > could check SrcFileList for any you don't want to copy, and deselect them > by setting FrFileCopy := FCStateNone. > > 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
[twsocket] MagFTP Upload Speed
Hi, 1) In case I have to upload some data (eg: 5GB). How can I get to know approximately how much time it will take ? 2) Just wanted to know if there are any size limits for upload with ICS/MagFtp ? Regards Allan -- 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] MagFTP Upload Speed
Thanks. Also informing you that as far as Excludes are concerned the option you have given suits me well because apart from subfolders I also need to exclude files that have come into the folder after the FTP process has started (snapshot effect). My FTP upload may go on for 2 to 3 days and the application may stop and start several times. Also my requirement is mainly for upload. Download is only in case of any data loss on local machine. On Mon, May 6, 2013 at 11:24 PM, Angus Robertson - Magenta Systems Ltd < an...@magsys.co.uk> wrote: > > 1) In case I have to upload some data (eg: 5GB). How can I get to > > know approximately how much time it will take ? > > Use CopyEvent, LogLevelProg gives you an ASCII string every couple of > seconds showing how much has been transferred and the total size. > Unfortunately from your perspective, the response is friendly format, ie > 4.5Mbyte of 2.6Gbyte, which you'd need to parse with the time taken so > far to estimate the time left. The internal variables are not available > in the event. The component does report the time and speed at the end, > but that does not really help you. > > To do it properly really needs a new LogLevelSpeed type in the procedure > onFtpClientProg64 that does all these calculations and gives an ASCII > response. I'll put it on the wish list, with exclude sub-directories. > > > 2) Just wanted to know if there are any size limits for upload with > > ICS/MagFtp ? > > No real limits, I've tested file transfers of DVD size, but nothing > larger. But MagFtp only uses a single socket at a time. If you want > more efficient uploading of single large files you would be better > looking at OverbyteIcsMultipartFtpDownloader (no uploader) that splits a > large file into chunks and does multiple parallel transfers. > > 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
[twsocket] Date of File (FTP)
Hi, I am using TSslFtpClient and and need the DateTime of remote files. >From what I understand the only way is via the Dir command. If so how do I parse list ? Is there fixed format ? Warmest Regards Allan -- 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] File Transfer across LAN - Newbie
Hi , My program needs to copy large files (1GB etc.) across a LAN. I have to use Sockets with TCPIP because the machines/disks are not shared. Since there is no question of a web site I cannot use the FTP component. I already have a lengthy logic using TServerSocket + TClientSocket which copies data using 2kb buffers. Is there a simpler solution with ICS as I have heard much about it. Regards Allan ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com -- 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] Help Files ?
Hi , I had previously asked: > My program needs to copy large files (1GB etc.) across a LAN. Your advice was: > The simplest solution is to use ICS FTP... I have succesfully managed a test version with your FTP component by refering to your examples. Thank You. I have been hunting for the Help files to get a deeper insight of the components but could not find them, can you help ? Regards Allan ___ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com -- 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] Odd Behaviour
Hi, I use ICS version: V2.99 (Revised: May 29, 2005) with Delphi5 My client's setup is thus: MachServ (WinXP) MachA (Win98) MachB (Win98) MachC (Win98) MachD (Win98) I have 2 applications MyNode.exe and MyServer.exe MyNode: runs in background on all 5 machines. It Uses following ICS components- TFTPClientP1 and TFTPClientP2 and TFTPServerP1 MyServer: runs on MachServ. It Uses following ICS components- TFTPServerP2 P1 denotes port = 5011 and P2 denotes port = 5014 (I have tried changing ports to 6011 and 6014) The Problem: All Transfers via P1 are perfectly OK, but P2 from MachA gives error in RequestDone event RqType of ftpOpenAsync: gives value of 'not fFTPClient.User' At the same time MachB,MachC,MachD and MachE transfer files via P2. I know that the problem may not be with the ICS component, but I do not have a hint of my next step. Could you please advice me what may be the reasons of such an odd behaviour. Regards Allan ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry -- 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] Odd Behaviour
Hi Arno Garrels, >>What does this mean? Server?, client?, Port?, PasvPortRange >>or DataPortRange? Are you using Pasv mode? I use two ports for Ftp communication One set of TFTPClientP1 and TFTPServerP1 using port 5011 is used to communicate between MyNode.exe's. The other set TFTPClientP2 and TFTPServerP2 using port 5014 is used to communicate beteween MyNode.exe's and MyServer.exe. I do not use Pasv mode. >>An error 'not fFTPClient.User' is unknown to me, what is the error code of request ftpOpenAsync? >>Are you using asynchronous methods? I use asynchronous method. The error code is Ord(RqType)=1 ErrCode=10061 FErrorMessage=500 Connection refused (Winsock error #10061) Thanks for your patience. Allan Note: In case the component details will help, I have pasted them here from the DFM. MyNode.exe has object FtpClientP1: TFtpClient Timeout = 15 MultiThreaded = False Port = '5011' DataPortRangeStart = 0 DataPortRangeEnd = 0 LocalAddr = '0.0.0.0' DisplayFileFlag = False Binary = True ShareMode = ftpShareExclusive Options = [ftpAcceptLF] ConnectionType = ftpDirect OnProgress = FtpClientP1Progress OnRequestDone = FtpClientP1RequestDone end object FtpClientP2: TFtpClient Port = '5014' OnRequestDone = FtpClientP2RequestDone (everything else same as FtpClientP1) end object FtpServerP1: TFtpServer Addr = '0.0.0.0' Port = '5011' Banner = '220 ICS FTP Server ready.' UserData = 0 MaxClients = 0 PasvPortRangeStart = 0 PasvPortRangeSize = 0 Options = [ftpsCwdCheck] OnAuthenticate = FtpServerP1Authenticate OnAnswerToClient = FtpServerP1AnswerToClient end MyServer.exe has * object FtpServerP2: TFtpServer Port = '5014' Options = [] OnAuthenticate = FtpServerP2Authenticate OnAnswerToClient = FtpServerP2AnswerToClient (everything else same as FtpServerP1) end ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- 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] Odd Behaviour
Hi Arno Garrels, >> I still haven't got your configuration and the problem completely. >> As far as I understand the FTP server in question >> is listining on port 5014. >> It has active connections downloading files, but one of your clients >> gets a 10061 when it tries to connect, is that correct? What you have understood is correct. But just this is not the odd behaviour. I have another FTP server listening at 5011 on the same machine where 5014 is listening. The funny thing is that the problematic client which has two FTP Clients conneted at 5011 and 5014 can send files to the FTP server at 5011 but not at 5014 ? Further Clarification if required only: You may wonder why I am using two FTP Servers. As I have mentioned earlier I have the MyNode.exe which works at port 5011 on all 5 machines, therefore each machine has a FTP server listening at 5011 and a FTP Client sending at port 5011. Whereas MyServer.exe is required only for the UserInterface rarely and this had FTP Server on port 5014. My Application is for Automatic backups and the backups are stored from each machine on to any selected machine/s. Regards Allan ___ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/ -- 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] Odd Behaviour
Hi , >> You know that FTP protocol use TWO ports. One for control and one for data. >> Maybe the data port on a server collide with the control port or data port for another one. Firstly let me apologise for my delayed reply. As I am new to this socket programming I had to read up and try out the suggestions you had given me, further I have probably lost that client where this problem occurs. My application runs fine on three other installations and at my office. Therefore I am forced to drop the problem as of now. After studying your suggestions I have given values thus FtpClient1.Port=5011 FtpClient1.DataPortRangeStart=5015 FtpClient1.DataPortRangeEnd=5015 FtpServerP1.Port=5011 FtpClient2.Port=5014 FtpClient2.DataPortRangeStart=5016 FtpClient2.DataPortRangeEnd=5016 FtpServerP2.Port=5014 Since my other installations are running alright I have not moved onto PassV mode. Thanks for being there Allan ___ NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/ -- 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] Odd Behaviour
Hi, >> You need a bigger data port range than that. This >> will allow only one data transfer (can be a file listing) then you will have problems with ports >> being in time_wait state, so having no available ports. Please correct my interpretation if I am wrong. One Ftp transfer can make use of more than one data port for transfering 1 file ? If I have correctly understood that then, will a range of about 10 ports (which I am sure are unused) be ok to tranfer files of upto 4 GB ? Regards Allan ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- 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] Mercy !!
Hi , >> I don't plan to support anything below Delphi 7 I am just giving finishing touches to my application in delphi 5 with ICS components, after 3 months of work. I am heartbroken to read that you will not be supporting earlier versions. Could I be brave enough to ask wether you will answer simple questions if some novices like me are stuck. ie: no change in code etc. just questions which you experts can answer even in your sleep. Regards Allan ___ Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry -- 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] Error 10048 in function Bind
Hi, I am getting the following error when I try to Start the FTPServer Error 10048 in function Bind Address already in use I have already assigned port = 5011 before Start. Please advice. Allan Send instant messages to your online friends http://uk.messenger.yahoo.com -- 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] Minimum Events Required
Hi, I use TFTPServer to accept files send by TFtpClient over a LAN network. At the TFTPServer end I just use two events FtpServerP4AnswerToClient and FtpServerAuthenticate There is memory loss after accepting a file. What is the next simplest method to accept a file Can I avoid using Threads etc. procedure TForm_Starter.FtpServerP4AnswerToClient(Sender: TObject;Client: TFtpCtrlSocket; var Answer: TFtpString); begin if Answer=cc_SockMsg_FileReceived then TakingRequiredAction(Client.FileName,Client.FilePath) ; end; Regards Allan ___ All New Yahoo! Mail Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html -- 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] Minimum Events Required
Actually the memory leakage is not with the TFTPServer or the way I was using it. The Problem was with TMemoryStatus which was showing rapid depletion of memory on Win98. Please accept my apologies for wasting your time. Regards Allan ___ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html -- 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] Reduce Priority TFTPServer
Hi, I am using Delphi 5 with your TFTPServer and TFTPClient over a LAN network. There are 20 machines sending data simultaneously to the same TFTPServer. This is slowing down the machine considerably. I have no problem if the FTP transfers are slowed down instead, therefore I am trying to add Application.ProcessMassages in FtpServer1StorDataAvailable event. With this the client goes into Timeout and only a portion of the file reaches the server. I tried adding FtpClient1.DataSocket.LingerOnOff:=wsLingerOn ; FtpClient1.DataSocket.LingerTimeout:=30 ; // also tried 300 and 3000 and FtpClient1.Timeout:=30 ; // also tried 300 and 3000 but it did not help. How can I reduce the priority of TFTPServer ? Regards Allan ___ All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine http://uk.docs.yahoo.com/nowyoucan.html -- 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] Control connection closed - Some Machines only
Hi, I use Delphi5 with ICS components. The program runs on a LAN environment. I copy 2 files successfully from node-A (TFTPClient) to node-B (TFTPServer).The 3rd file has to go from node-A (TFTPClient) to node-C (TFTPServer), this is when I get OnRequestDone RqType=15 ErrCode = 500 ErrorMessage= Control connection closed. Connection reset by peer (Winsock error #10054) All the same the files are copied successfully. After the error I also get Timeout error after the next 'ftpPutAsync' OnRequestDone RqType=18 ErrCode=426 ErrorMessage=Timeout This is happening only at my clients office. At my setup it works perfectly. Is there some windows setup I should check? Regards Allan ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html -- 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