I'm a C++ developer who uses IBM's VisualAge C++ v5.0 product on AIX v5.2. I'm looking to transfer files between AIX hosts from within my C++ program, and was told that I should use FTP.
I could use the system() standard library function to issue the FTP command and sub-commands from within my C++ program. I could also get fancy and write a little program or script to issue the FTP command, and then call the script using the IOC class IExternalProcess (which enables me to service other threads while waiting for the FTP to complete).
The problem I am having is finding out whether or not the FTP was successful. There are circumstances when FTP returns zero (success) when, for example, the put sub-command I issue specifies a non-existent file.
Is there a FTP API available for doing FTP on an AIX box (from either within a C++ program or a script)? Should I look at alternatives to FTP?
I NEED TO KNOW IF THE FILE TRANSFER WAS SUCCESSFUL.
Any and all help is appreciated...
I could use the system() standard library function to issue the FTP command and sub-commands from within my C++ program. I could also get fancy and write a little program or script to issue the FTP command, and then call the script using the IOC class IExternalProcess (which enables me to service other threads while waiting for the FTP to complete).
The problem I am having is finding out whether or not the FTP was successful. There are circumstances when FTP returns zero (success) when, for example, the put sub-command I issue specifies a non-existent file.
Is there a FTP API available for doing FTP on an AIX box (from either within a C++ program or a script)? Should I look at alternatives to FTP?
I NEED TO KNOW IF THE FILE TRANSFER WAS SUCCESSFUL.
Any and all help is appreciated...