aftp_query_local_version

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
);

Parameters

major_version
The major version number of the AFTP code on the client computer. In version 5.4, the major version number is 5.
minor_version
The minor version number of the AFTP code on the client computer. In version 5.4, the minor version number is 4.
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_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");
    }
}
 

Line Flows

None.