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
);
{
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);
}
None.