aftp_destroy

The aftp_destroy call destroys an AFTP connection object. When an AFTP connection object is destroyed, it cannot be used again.

You should issue the aftp_close call to end the connection before you issue this call.

AFTP_ENTRY aftp_destroy(
IN AFTP_HANDLE_TYPE
connection_id,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR
return_code
);

Parameters

connection_id
An AFTP connection object to be destroyed. This object was originally created with aftp_create.
return_code
The return code issued for this function. See AFTP Return Codes for the list of possible return codes.

Example

{
    AFTP_RETURN_CODE_TYPE aftp_rc;
    AFTP_HANDLE_TYPE      connection_id;

    /*
     * Before issuing the example call, you must have:
     *    a connection_id, use:  aftp_create()
     *
     * If you have opened a connection with aftp_connect()
     * you must also issue an aftp_close()
     */

     aftp_destroy(connection_id, &aftp_rc);

}
 

Line Flows

None.