globus_ftp_client_data(3) | globus_ftp_client | globus_ftp_client_data(3) |
globus_ftp_client_data - Reading and Writing Data.
typedef void(* globus_ftp_client_data_callback_t) (void
*user_arg, globus_ftp_client_handle_t *handle, globus_object_t
*error, globus_byte_t *buffer, globus_size_t length, globus_off_t offset,
globus_bool_t eof)
globus_result_t globus_ftp_client_register_read
(globus_ftp_client_handle_t *handle, globus_byte_t *buffer,
globus_size_t buffer_length, globus_ftp_client_data_callback_t
callback, void *callback_arg)
globus_result_t globus_ftp_client_register_write
(globus_ftp_client_handle_t *handle, globus_byte_t *buffer,
globus_size_t buffer_length, globus_off_t offset, globus_bool_t eof,
globus_ftp_client_data_callback_t callback, void *callback_arg)
Reading and Writing Data.
Certain FTP client operations require the user to supply buffers for reading or writing data to an FTP server. These operations are globus_ftp_client_get(), globus_ftp_client_partial_get(), globus_ftp_client_put(), globus_ftp_client_partial_put(), globus_ftp_client_list(), globus_ftp_client_machine_list(), globus_ftp_client_recursive_list(), and globus_ftp_client_verbose_list().
When doing these operations, the user must pass data buffers to the FTP Client library. Data is read or written directly from the data buffers, without any internal copies being done.
The functions in this section of the manual may be called as soon as the operation function has returned. Multiple data blocks may be registered with the FTP Client Library at once, and may be sent in parallel to or from the FTP server if the GridFTP protocol extensions are being used.
Data Callback.
Each read or write operation in the FTP Client library is asynchronous. A callback of this type is passed to each of the data operation function calls to let the user know when the data block has been processed.
Parameters:
Register a data buffer to handle a part of the FTP data transfer.
The data buffer will be associated with the current get being performed on this client handle.
Parameters:
See also:
Register a data buffer to handle a part of the FTP data transfer.
The data buffer will be associated with the current 'put' being performed on this client handle. Multiple data buffers may be registered on a handle at once. There is no guaranteed ordering of the data callbacks in extended block mode.
Parameters:
Generated automatically by Doxygen for globus_ftp_client from the source code.
Wed Feb 27 2019 | Version 9.2 |