ftp_get_last_download_details_ex

Example: Session ftp download information functionsFTP Vuser Functions (FTP)

Gets the duration and received byte count of the last ftp_get call in the session.

int ftp_get_last_download_details_ex( FTP *ppFtp, unsigned long * pByteCount, unsigned long * pDuration );

ftp_get_last_download_details_ex gets statistics of the last download in the session. It assigns the total download duration in milliseconds to the long integer variable to which pDuration points. This duration includes the actual transfer time and the connection overhead.

The number of bytes downloaded is assigned to the long integer variable to which pByteCount points.

The ppFtp argument is the address of the pointer to the session identifier.

To get the net transfer time, use ftp_get_last_transfer_duration_ex.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure. Note that in many cases, this return value indicates the technical success of the function, and not the result. For example, a function that registers a string to be found in a subsequent step returns LR_PASS to indicate that the registration was successful. This does not indicate that the string was found in the server response.

Parameterization

Standard parameterization is not available for this function.