Introducing FTP API

HostExplorer Programming

Introducing FTP API

The FTP API is a non-OLE interface that lets you build Hummingbird Basic scripts to perform local and remote disk and directory operations. The FTP API functions correspond to functionality in the 5.3 and earlier versions of FTP. For information on the 6.0 version of FTP API, see Introducing FTP OLE API. If you require more information on the function of a specific FTP API scripting command, refer to the FTP online Help.

Note: 
  You should also familiarize yourself with the following reference manuals for HLLAPI from IBM:
 
  • IBM 3270 Personal Computer High Level Language Application Programming Interface
  • AIX Version 3.2 High Level Application Programming Interface (HLLAPI) Programming

FTP script requirements

When creating an FTP script, you must fulfill certain requirements:

  • All of the FTP API functions are prototyped in the ftprtns.ebh header file. In order to access the FTP API methods in Hummingbird DLL's, you must include the ftprtns.ebh header file (.ebh) in your script file.
  • All FTP scripts must begin with the InitFTP command and end with the DeinitFTP command.

Handling FTP scripting errors

The GetErrorText command can be used to handle errors. All the error codes generated by FTP API scripting commands are numbered between 3000 and 4000.