Establishing a Connection to the AFTP Server Computer
For the AFTP client to communicate with an AFTP server, certain communications parameters must be set. Most of the communications parameters have default values. The destination does not have a default value and must be set explicitly. When the parameters are set as desired, the connection to the server can take place.
Use these API calls to manage your connection to the AFTP server.
-
aftp_close
-
Closes a connection to the AFTP server when processing is complete.
-
aftp_connect
-
Establishes the connection to the AFTP server for file transfer.
-
aftp_set_destination
-
Identifies the server computer name to which the AFTP connection will be established. This server computer will run the AFTP server program.
-
aftp_set_mode_name
-
Sets the mode name to be used for this connection. The default mode name is #BATCH.
-
aftp_set_password
-
Sets the password used for APPC security type PROGRAM. Using this call automatically sets the security type to PROGRAM.
-
aftp_set_security_type
-
Sets the APPC security used for the AFTP connection to the AFTP server.
-
aftp_set_tp_name
-
Sets the transaction program (TP) name to be used for this connection. The default TP name is AFTPD.
-
aftp_set_userid
-
Sets the user identifier used for APPC security type PROGRAM. Using this call automatically sets the security type to PROGRAM.