aftp_create

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

Parameters

connection_id
Handle of the AFTP connection object that was created by this call. All subsequent AFTP calls must use a previously-created AFTP connection object.
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;

    /*
     * 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");
    }
}
 

Line Flows

None.