Download FTPAPI source:
With IBM i we get a wonderful FTP client that allows you to I
do both interactive and batch file transfers. After attempting to write a
few programs that send files in "batch" mode, I discovered that
properly detecting errors in batch mode was not fun.
For my own project, I needed a way to reliably send data to a customer every
day. When this failed, or anything went wrong in the process I needed an easy
way to alert the IT department before the customer noticed.
From these requirements, the FTPAPI was born. It uses socket calls to
implement the FTP protocol. If anything goes wrong, it will report the error,
and give the program the ability to retrieve the error message. I use it
both to send/receive files from my customers, and also (as a seperate job) to
log on later and check that the file is actually there.
This is a powerful utility with many uses, so I'm opening it up to the world.
Since this has only been tested for a few applications with a few servers,
I'm looking for people to help out with testing, documentation and maybe even
with new features.
Have Fun! |