InetFTPReceiveData
ssize_t InetFTPReceiveData (int FTPHandle, char data[], size_t dataSize);
Purpose
Receives data associated with your command. You must call this function only from an FTP command data callback. The return value of this function indicates the number of bytes received. Call this function iteratively until it returns zero, indicating that there is no additional data to read.
Parameters
Input | ||
Name | Type | Description |
FTPHandle | int | A handle returned by the InetFTPLogin or InetFTPLoginEx function. The handle identifies an active FTP connection. |
dataSize | size_t | The size, in bytes, of the data buffer. This function returns an error if you pass a value greater than LLONG_MAX. |
Output | ||
Name | Type | Description |
data | char [] | The buffer to hold the data received from the server. The function does not NUL-terminate the output buffer. The number of bytes received is indicated by the function return value. |
Return Value
Name | Type | Description |
result | ssize_t | Return value indicating whether the function was successful. If the function was successful, the return value is the number of bytes read. A negative number indicates that an error occurred. |
Additional Information
Library: Internet Library
Include file: cvintwrk.h
LabWindows/CVI compatibility: LabWindows/CVI 9.0 and later