| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: When doing a site2site transfer how to check progress? |
| masgmasg From: asgasg, Uruguay Posts: 13 Member Since: 01/18/04 |
posted January 19, 2004 9:00 AM Hi again. When i have 2 ftp sessions, and : invoke = m_Ftp2.Invoke(FtpCommand.Null, STOR "test.zip") invoke = m_Ftp.Invoke(FtpCommand.Null, RETR "test.zip") An asynch site2site transfer starts in the background.. But my problem is. How do i do this synchrously? Or how can i check the status on this transfer with some kind of timer/loop? Progressbar and stuff doesn't work coz i'm using asp.net.. Thanks.. /Magnus |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 19, 2004 9:07 AM I don't see how you could do it synchrously. Both have to occur at the same time. Sorry I could not offer more. |
| masgmasg From: asgasg, Uruguay Posts: 13 Member Since: 01/18/04 |
posted January 19, 2004 9:11 AM Oki, but there must exist a method for checking up on this transfer somehow? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 19, 2004 9:17 AM Are you saying that the Progress event does not fire? |
| masgmasg From: asgasg, Uruguay Posts: 13 Member Since: 01/18/04 |
posted January 19, 2004 9:21 AM Havent tried that event yet. I'll see if i can get it to work.. Thanks for the help.. |
| masgmasg From: asgasg, Uruguay Posts: 13 Member Since: 01/18/04 |
posted January 22, 2004 2:47 AM The EndInvoke event does fire, but not at the right time. (its way too early, and not after the transfer is done. This is my code. invoke = m_Ftp.Invoke(FtpCommand.Null, "TYPE I") invoke = m_Ftp2.Invoke(FtpCommand.Null, "TYPE I") invoke = m_Ftp.Invoke(FtpCommand.Null, "PASV") strPasv = Mid(invoke.Response.Text, CInt(InStr(invoke.Response.Text, "(")) + 1) strPasv = Trim(Replace(strPasv, ")", "")) strPasv = "PORT " & strPasv invoke = m_Ftp2.Invoke(FtpCommand.Null, strPasv) m_Ftp2.BeginInvoke(FtpCommand.Null, "STOR test.zip") m_Ftp.BeginInvoke(FtpCommand.Null, "RETR test.zip") |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 22, 2004 8:39 AM Are you saying that that code actually does the transfer? Because I don't see how it could. We wouldn't know to set up a data connection. |
| masgmasg From: asgasg, Uruguay Posts: 13 Member Since: 01/18/04 |
posted January 23, 2004 2:11 AM Yes sure, this is how one does a real fxp transfer. Setup a PASV connection on the first site, and then take the PASV info and do a PORT on the second site. Works very well. The problem is the asynch problem. I cannot determine exactly when the transfer is complete. Have also tried with .Busy command, but it seems only to work in 50% of the cases. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted January 23, 2004 10:18 AM I would not have figured that that would work. I think what is more likely is that the transfer is not actually taking place because we are not expecting it. For something advanced like this you'll need to get in touch with our support department directly. Please use support@dart.com or 315-790-5456. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|