The aftp_create call creates an AFTP connection object that can be used to connect to an AFTP server.
AFTP_ENTRY aftp_create(
OUT 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;
/*
* There are no prerequisite calls for this call.
*/
/*
* Create the connection object that we will use for AFTP.
*/
aftp_create(connection_id, &aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error creating an AFTP object.\n");
}
}
None.