This example illustrates the use ProFTPClient's SOCKS5 functionality.
The example performs the following operations:
You can view the source-code here.
run host-name username password filename proxy-server [proxy-user]where
INFO [Socks5Client] 26 Jan 2005 15:00:43.165 : Creating FTP-via-SOCKS5 client INFO [Socks5Client] 26 Jan 2005 15:00:43.175 : Setting FTP server address INFO [Socks5Client] 26 Jan 2005 15:00:43.185 : Setting SOCKS5 context INFO [Socks5Client] 26 Jan 2005 15:00:43.195 : Connecting to server LOCALHOST INFO [Socks5Client] 26 Jan 2005 15:00:43.255 : Logging in with username=test and password=test INFO [Socks5Client] 26 Jan 2005 15:00:43.265 : Setting up passive, ASCII transfers INFO [Socks5Client] 26 Jan 2005 15:00:43.265 : Directory before put: INFO [Socks5Client] 26 Jan 2005 15:00:43.306 : no files INFO [Socks5Client] 26 Jan 2005 15:00:43.306 : Putting Socks5Client.exe to server INFO [Socks5Client] 26 Jan 2005 15:00:43.356 : Directory after put: INFO [Socks5Client] 26 Jan 2005 15:00:43.386 : -rw-rw-rw- 1 user group 16318 Jan 26 15:00 Socks5Client.exe INFO [Socks5Client] 26 Jan 2005 15:00:43.386 : Getting Socks5Client.exe from server and saving as Socks5Client.exe.copy INFO [Socks5Client] 26 Jan 2005 15:00:43.446 : Deleting Socks5Client.exe INFO [Socks5Client] 26 Jan 2005 15:00:43.456 : Directory after delete: INFO [Socks5Client] 26 Jan 2005 15:00:43.486 : no files INFO [Socks5Client] 26 Jan 2005 15:00:43.486 : Quitting clientThere should now also be a file called YourFilename.copy in the local directory.