The aftp_query_local_version call queries the AFTP version number on the AFTP client computer. A connection to the AFTP server is not required before using this call.
AFTP_ENTRY aftp_query_local_version(
OUT AFTP_VERSION_TYPE AFTP_PTR major_version,
OUT AFTP_VERSION_TYPE AFTP_PTR minor_version,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR return_code
);
{
AFTP_RETURN_CODE_TYPE aftp_rc;
AFTP_VERSION_TYPE major_version;
AFTP_VERSION_TYPE minor_version;
/*
* There are no prerequisite calls for this call.
*/
/*
* Query the AFTP version number on the
* AFTP client computer.
*/
aftp_query_local_version(
&major_version,
&minor_version,
&aftp_rc);
if (aftp_rc != AFTP_RC_OK) {
fprintf(stderr, "Error in query of local version.\n");
}
}
None.