This example illustrates the use ProFTPClient's SOCKS4 functionality.
The example performs the following operations:
You can view the source-code here.
run host-name username password filename proxy-server proxy-userwhere
INFO [Socks4Client] 26 Jan 2005 14:48:43.020 : Creating FTP-via-SOCKS4 client INFO [Socks4Client] 26 Jan 2005 14:48:43.030 : Setting FTP server address INFO [Socks4Client] 26 Jan 2005 14:48:43.030 : Setting SOCKS4 context INFO [Socks4Client] 26 Jan 2005 14:48:43.040 : Connecting to server LOCALHOST INFO [Socks4Client] 26 Jan 2005 14:48:43.100 : Logging in with username=test and password= test INFO [Socks4Client] 26 Jan 2005 14:48:43.100 : Setting up passive, ASCII transfers INFO [Socks4Client] 26 Jan 2005 14:48:43.110 : Directory before put: INFO [Socks4Client] 26 Jan 2005 14:48:43.150 : no files INFO [Socks4Client] 26 Jan 2005 14:48:43.150 : Putting Socks4Client.exe to server INFO [Socks4Client] 26 Jan 2005 14:48:43.190 : Directory after put: INFO [Socks4Client] 26 Jan 2005 14:48:43.230 : -rw-rw-rw- 1 user group 16334 Jan 26 14:48 Socks4Client.exe INFO [Socks4Client] 26 Jan 2005 14:48:43.230 : Getting Socks4Client.exe from serverand saving as Socks4Client.exe.copy INFO [Socks4Client] 26 Jan 2005 14:48:43.310 : Deleting Socks4Client.exe INFO [Socks4Client] 26 Jan 2005 14:48:43.320 : Directory after delete: INFO [Socks4Client] 26 Jan 2005 14:48:43.350 : no files INFO [Socks4Client] 26 Jan 2005 14:48:43.350 : Quitting clientThere should now also be a file called YourFilename.copy in the local directory.