pseudo code:
objFTP.ServerAddress = "***.***.***.***"
objFTP.ServerPort = 21
objFTP.UserName = "***********"
objFTP.Password = "***********"
objFTP.Connect()
Log File:
INFO [LicenseProperties] 28 Sep 2007 09:18:32.521 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 Sep 2007 09:18:32.531 : Production license
INFO [LicenseProperties] 28 Sep 2007 09:18:32.531 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 Sep 2007 09:18:32.531 : Production license
DEBUG [SSLFTPClient] 28 Sep 2007 09:18:32.531 : Connecting to ***.***.***.***:21
DEBUG [HostNameResolver] 28 Sep 2007 09:18:32.601 : ***.***.***.*** resolved to ***.***.***.***
DEBUG [SSLFTPControlSocket] 28 Sep 2007 09:18:32.621 : waitOnShutdownSSL=True
DEBUG [ExFTPControlSocket] 28 Sep 2007 09:18:32.671 : Connecting directly to ftp-server ***.***.***.***:21
DEBUG [ExFTPControlSocket] 28 Sep 2007 09:18:32.862 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=***.***.***.***, controlPort=21, timeout=120000
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.862 : 220-FTP authentication :
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.872 : 220
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.872 : ---> USER *************
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.962 : 331-Password:
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.962 : 331
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:32.962 : ---> PASS ********
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:33.192 : 220 narnia FTP server (Version wu-2.6.2+Sun) ready.
INFO [FTPControlSocket] 28 Sep 2007 09:18:33.192 : Expected reply codes = [230,202]
DEBUG [AsyncProcessor] 28 Sep 2007 09:18:33.202 : Stopping FTP task processor.
DEBUG [AsyncProcessor] 28 Sep 2007 09:18:33.202 : FTP task processor stopped.
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:33.202 : ---> QUIT
DEBUG [FTPControlSocket] 28 Sep 2007 09:18:33.262 : 221 Goodbye.
DEBUG [SecureSocket] 28 Sep 2007 09:18:33.272 : Shutdown(Both)
ALL [FTPConnection] 28 Sep 2007 09:18:33.282 : Invoking delegate EnterpriseDT.Net.Ftp.FTPConnectionEventHandler -> TestingApp.Form1.ftpconnection_Connected
ALL [FTPConnection] 28 Sep 2007 09:18:33.282 : Finding MainWindowHandle
ALL [FTPConnection] 28 Sep 2007 09:18:33.302 : MainWindowHandle found
ALL [FTPConnection] 28 Sep 2007 09:18:33.302 : Have GUI control
ALL [FTPConnection] 28 Sep 2007 09:18:33.302 : GUI control invocation not required
ALL [FTPConnection] 28 Sep 2007 09:18:33.302 : Invoking delegate dynamically
ALL [FTPConnection] 28 Sep 2007 09:18:34.514 : Dynamic delegate invocation complete
ALL [FTPConnection] 28 Sep 2007 09:18:34.514 : Invoking delegate EnterpriseDT.Net.Ftp.FTPConnectionEventHandler -> TestingApp.Form1.ftpconnection_Connected
ALL [FTPConnection] 28 Sep 2007 09:18:34.514 : Have GUI control
ALL [FTPConnection] 28 Sep 2007 09:18:34.514 : GUI control invocation not required
ALL [FTPConnection] 28 Sep 2007 09:18:34.514 : Invoking delegate dynamically
ALL [FTPConnection] 28 Sep 2007 09:18:34.524 : Dynamic delegate invocation complete
This is the log when AutoConnect is set to "False"
objFTP.Connect()INFO [LicenseProperties] 28 Sep 2007 09:34:26.533 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 Sep 2007 09:34:26.533 : Production license
INFO [LicenseProperties] 28 Sep 2007 09:34:26.533 : Licence expiry date: 12/31/9999
INFO [LicenseProperties] 28 Sep 2007 09:34:26.533 : Production license
DEBUG [SSLFTPClient] 28 Sep 2007 09:34:26.533 : Connecting to ***.***.***.***:21
DEBUG [HostNameResolver] 28 Sep 2007 09:34:26.543 : ***.***.***.*** resolved to ***.***.***.***
DEBUG [SSLFTPControlSocket] 28 Sep 2007 09:34:26.543 : waitOnShutdownSSL=True
DEBUG [ExFTPControlSocket] 28 Sep 2007 09:34:26.553 : Connecting directly to ftp-server ***.***.***.***:21
DEBUG [ExFTPControlSocket] 28 Sep 2007 09:34:26.573 : Created control-socket: SocksContext=, ProxySettings=NoProxy, RemoteHost=***.***.***.***, controlPort=21, timeout=120000
DEBUG [FTPControlSocket] 28 Sep 2007 09:34:26.783 : 220-FTP authentication :
DEBUG [FTPControlSocket] 28 Sep 2007 09:34:26.793 : 220
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : Invoking delegate EnterpriseDT.Net.Ftp.FTPConnectionEventHandler -> TestingApp.Form1.ftpconnection_Connected
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : Finding MainWindowHandle
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : MainWindowHandle found
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : Have GUI control
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : GUI control invocation not required
ALL [FTPConnection] 28 Sep 2007 09:34:26.803 : Invoking delegate dynamically
ALL [FTPConnection] 28 Sep 2007 09:34:26.934 : Dynamic delegate invocation complete
DEBUG [EnterpriseDT.Net.Ftp.ExFTPConnection] 28 Sep 2007 09:34:28.476 : Starting KeepAlive thread with period 30s