.TH "globus_gass_copy.c" 3 "Mon Apr 30 2012" "Version 8.4" "globus gass copy" \" -*- nroff -*- .ad l .nh .SH NAME globus_gass_copy.c \- .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "globus_result_t \fBglobus_gass_copy_handle_init\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_handleattr_t *attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_handle_destroy\fP (globus_gass_copy_handle_t *handle)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_buffer_length\fP (globus_gass_copy_handle_t *handle, int length)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_buffer_length\fP (globus_gass_copy_handle_t *handle, int *length)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_no_third_party_transfers\fP (globus_gass_copy_handle_t *handle, globus_bool_t no_third_party_transfers)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_no_third_party_transfers\fP (globus_gass_copy_handle_t *handle, globus_bool_t *no_third_party_transfers)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_allocate\fP (globus_gass_copy_handle_t *handle, globus_bool_t send_allo)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_stat_on_expand\fP (globus_gass_copy_handle_t *handle, globus_bool_t always_stat)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_partial_offsets\fP (globus_gass_copy_handle_t *handle, globus_off_t offset, globus_off_t end_offset)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_partial_offsets\fP (globus_gass_copy_handle_t *handle, globus_off_t *offset, globus_off_t *end_offset)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_init\fP (globus_gass_copy_attr_t *attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_ftp\fP (globus_gass_copy_attr_t *attr, globus_ftp_client_operationattr_t *ftp_attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_io\fP (globus_gass_copy_attr_t *attr, globus_io_attr_t *io_attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_gass\fP (globus_gass_copy_attr_t *attr, globus_gass_transfer_requestattr_t *gass_attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_url_mode\fP (char *url, globus_gass_copy_url_mode_t *mode)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_register_performance_cb\fP (globus_gass_copy_handle_t *handle, \fBglobus_gass_copy_performance_cb_t\fP callback, void *user_arg)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_status\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_status_t *status)" .br .ti -1c .RI "const char * \fBglobus_gass_copy_get_status_string\fP (globus_gass_copy_handle_t *handle)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_url_to_url\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, char *dest_url, globus_gass_copy_attr_t *dest_attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_url_to_handle\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, globus_io_handle_t *dest_handle)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_handle_to_url\fP (globus_gass_copy_handle_t *handle, globus_io_handle_t *source_handle, char *dest_url, globus_gass_copy_attr_t *dest_attr)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_register_url_to_url\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, char *dest_url, globus_gass_copy_attr_t *dest_attr, globus_gass_copy_callback_t callback_func, void *callback_arg)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_register_url_to_handle\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, globus_io_handle_t *dest_handle, globus_gass_copy_callback_t callback_func, void *callback_arg)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_register_handle_to_url\fP (globus_gass_copy_handle_t *handle, globus_io_handle_t *source_handle, char *dest_url, globus_gass_copy_attr_t *dest_attr, globus_gass_copy_callback_t callback_func, void *callback_arg)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_cache_url_state\fP (globus_gass_copy_handle_t *handle, char *url)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_flush_url_state\fP (globus_gass_copy_handle_t *handle, char *url)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_user_pointer\fP (globus_gass_copy_handle_t *handle, void *user_pointer)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_user_pointer\fP (globus_gass_copy_handle_t *handle, void **user_data)" .br .ti -1c .RI "globus_result_t \fBglobus_gass_copy_cancel\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_callback_t cancel_callback, void *cancel_callback_arg)" .br .ti -1c .RI "globus_result_t \fBglobus_l_gass_copy_target_cancel\fP (\fBglobus_i_gass_copy_cancel_t\fP *cancel_info)" .br .in -1c .SH "Detailed Description" .PP Globus GASS Copy library\&. \fBSee also:\fP .RS 4 See the detailed description in \fBglobus_gass_copy\&.h\fP .RE .PP .SH "Function Documentation" .PP .SS "globus_result_t \fBglobus_gass_copy_handle_init\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_handleattr_t *attr)" .PP Initialize a GASS Copy handle\&. A globus_gass_copy_handle must be initialized before any transfers may be associated with it\&. This function initializes a globus_gass_copy_handle to be used for doing transfers, this includes initializing a globus_ftp_client_handle which will be used for doing any ftp/gsiftp transfers\&. The same handle may be used to perform multiple, consecutive transfers\&. However, there can only be one transfer associated with a particular handle at any given time\&. After all transfers to be associated with this handle have completed, the handle should be destroyed by calling \fBglobus_gass_copy_handle_destroy()\fP\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to be initialized .br \fIattr\fP The handle attributes used to use with this handle .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_handle_destroy()\fP , globus_gass_copy_handleattr_init(), globus_ftp_client_hande_init() .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_handle_destroy\fP (globus_gass_copy_handle_t *handle)" .PP Destroy a GASS Copy handle\&. Destroy a gass_copy_handle, which was initialized using \fBglobus_gass_copy_handle_init()\fP, that will no longer be used for doing transfers\&. Once the handle is detroyed, no further transfers should be associated with it\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to be destroyed .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_handle_init()\fP, globus_ftp_client_handle_destroy() .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_set_buffer_length\fP (globus_gass_copy_handle_t *handle, intlength)" .PP Set the size of the buffer to be used for doing transfers\&. This function allows the user to set the size of the buffer that will be used for doing transfers, if this function is not called the buffer size will default to 1M\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Set the buffer length for transfers associated with this handle\&. .br \fIlength\fP The length, in bytes, to make the buffer\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_buffer_length\fP (globus_gass_copy_handle_t *handle, int *length)" .PP Get the size of the buffer being used for doing transfers\&. This function allows the user to get the size of the buffer that is being used for doing transfers\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Get the buffer length for transfers associated with this handle\&. .br \fIlength\fP The length, in bytes, of the buffer\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_set_no_third_party_transfers\fP (globus_gass_copy_handle_t *handle, globus_bool_tno_third_party_transfers)" .PP Turn third-party transfers on or off\&. (They are on by default\&.) .PP This function allows the user to turn third-party transfers on or off for ftp to ftp transfers associated with a particular handle\&. This is often desired if one of the servers involved in the transfer does not allow third-party transfers\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Turn third-party transfers on or off for transfers associated with this handle\&. They are on by default\&. .br \fIno_third_party_transfers\fP GLOBUS_FALSE if third-party transfers should be used\&. GLOBUS_TRUE if third-party transfers should not be used\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References globus_gass_copy_get_status(), and GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_no_third_party_transfers\fP (globus_gass_copy_handle_t *handle, globus_bool_t *no_third_party_transfers)" .PP See if third-party transfers are turned on or off\&. (They are on by default\&.) .PP This function allows the user to see if third-party transfers are turned on or off for ftp to ftp transfers associated with a particular handle\&. This is often desired if one of the servers involved in the transfer does not allow third-party transfers\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP See if third-party transfers are turned on or off for transfers associated with this handle\&. They are on by default\&. .br \fIno_third_party_transfers\fP GLOBUS_FALSE if third-party transfers should be used\&. GLOBUS_TRUE if third-party transfers should not be used\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_set_allocate\fP (globus_gass_copy_handle_t *handle, globus_bool_tsend_allo)" .PP Set allo on or off\&. .SS "globus_result_t \fBglobus_gass_copy_set_stat_on_expand\fP (globus_gass_copy_handle_t *handle, globus_bool_talways_stat)" .PP Make globus_gass_copy_expand_url() always send stat info\&. .SS "globus_result_t \fBglobus_gass_copy_set_partial_offsets\fP (globus_gass_copy_handle_t *handle, globus_off_toffset, globus_off_tend_offset)" .PP Set the offsets to be used for doing partial transfers\&. This function allows the user to set the offsets that will be used for doing partial transfers\&. An offset of -1 will disable partial transfers\&. An end_offset of -1 means EOF\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Set the offsets for partial transfers associated with this handle\&. .br \fIoffset\fP The starting offset for the partial transfer\&. .br \fIend_offset\fP The ending offset for the partial transfer\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_partial_offsets\fP (globus_gass_copy_handle_t *handle, globus_off_t *offset, globus_off_t *end_offset)" .PP Get the offsets being used for doing partial transfers\&. This function allows the user to get the offsets that are being used for doing partial transfers\&. An offset of -1 means partial transfers are disabled\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Get the offsets for partial transfers associated with this handle\&. .br \fIoffset\fP The starting offset for the partial transfer\&. .br \fIend_offset\fP The ending offset for the partial transfer\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_attr_init\fP (globus_gass_copy_attr_t *attr)" .PP Initialize an attribute structure\&. The globus_gass_copy_attr_t can be used to pass the globus_gass_copy library information about how a transfer should be performed\&. It must first be initialized by calling this function\&. Then any or all of the following functions may be called to set attributes associated with a particular protocol: \fBglobus_gass_copy_attr_set_ftp()\fP, \fBglobus_gass_copy_attr_set_gass()\fP, \fBglobus_gass_copy_attr_set_io()\fP\&. Any function which takes a globus_gass_copy_attr_t as an argument will also accept GLOBUS_NULL, in which case the appropriate set of default attributes will be used\&. .PP \fBParameters:\fP .RS 4 \fIattr\fP The attribute structure to be initialized .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_attr_set_ftp()\fP, \fBglobus_gass_copy_attr_set_gass()\fP, \fBglobus_gass_copy_attr_set_io()\fP, \fBglobus_gass_copy_get_url_mode()\fP\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_attr_set_ftp\fP (globus_gass_copy_attr_t *attr, globus_ftp_client_operationattr_t *ftp_attr)" .PP Set the attributes for ftp/gsiftp transfers\&. In order to specify attributes for ftp/gsiftp transfers, a globus_ftp_client_operationattr_t should be initialized and its values set using the appropriate globus_ftp_client_operationattr_* functions\&. The globus_ftp_client_operationattr_t * can then be passed to the globus_gass_copy_attr_t via this function\&. .PP \fBParameters:\fP .RS 4 \fIattr\fP A globus_gass_copy attribute structure .br \fIftp_attr\fP The ftp/gsiftp attributes to be used .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_attr_init()\fP, \fBglobus_gass_copy_attr_set_gass()\fP, \fBglobus_gass_copy_attr_set_io()\fP, \fBglobus_gass_copy_get_url_mode()\fP, globus_ftp_client_operationattr_* .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_attr_set_io\fP (globus_gass_copy_attr_t *attr, globus_io_attr_t *io_attr)" .PP Set the attributes for file transfers\&. In order to specify attributes for file transfers, a globus_io_attr_t should be initialized and its values set using the appropriate globus_io_attr_* functions\&. The globus_io_attr_t can then be passed to the globus_gass_copy_attr_t via this function\&. .PP \fBParameters:\fP .RS 4 \fIattr\fP A globus_gass_copy attribute structure .br \fIio_attr\fP The file attributes to be used .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_attr_init()\fP, \fBglobus_gass_copy_attr_set_gass()\fP, \fBglobus_gass_copy_attr_set_ftp()\fP, \fBglobus_gass_copy_get_url_mode()\fP, globus_io_attr_* .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_attr_set_gass\fP (globus_gass_copy_attr_t *attr, globus_gass_transfer_requestattr_t *gass_attr)" .PP Set the attributes for http/https transfers\&. In order to specify attributes for http/https transfers, a globus_gass_transfer_requestattr_t should be initialized and its values set using the appropriate globus_gass_transfer_requestattr_* functions\&. The globus_gass_transfer_requestattr_t can then be passed to the globus_gass_copy_attr_t via this function\&. .PP \fBParameters:\fP .RS 4 \fIattr\fP A globus_gass_copy attribute structure .br \fIgass_attr\fP The http/https attributes to be used .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_attr_init()\fP, \fBglobus_gass_copy_attr_set_io()\fP, \fBglobus_gass_copy_attr_set_ftp()\fP, \fBglobus_gass_copy_get_url_mode()\fP, globus_gass_transfer_requestattr_* .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_url_mode\fP (char *url, globus_gass_copy_url_mode_t *mode)" .PP Classify the URL schema into the transfer method that will be used to do the actual tranfer\&. This function enables the user to determine what protocol will be used to transfer data to/from a particular url\&. This information can then be used to specify the appropriate attributes when initiating a transfer\&. .PP \fBParameters:\fP .RS 4 \fIurl\fP The URL for schema checking .br \fImode\fP the filled in schema type of the URL param .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_attr_init()\fP, \fBglobus_gass_copy_attr_set_io()\fP, \fBglobus_gass_copy_attr_set_ftp()\fP, globus_gass_copy_set_gass() .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_register_performance_cb\fP (globus_gass_copy_handle_t *handle, \fBglobus_gass_copy_performance_cb_t\fPcallback, void *user_arg)" .PP Register a performance information callback\&. Use this to register a performance information callback\&. You change or set to GLOBUS_NULL the callback any time a transfer is not occurring\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP an initialized gass copy handle for which you would like to see performance info .br \fIcallback\fP the performance callback .br \fIuser_arg\fP a user pointer that will be passed to all callbacks for a given handle .RE .PP \fBReturns:\fP .RS 4 .IP "\(bu" 2 GLOBUS_SUCCESS .IP "\(bu" 2 error on a NULL or busy handle .PP .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_performance_cb_t\fP .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_status\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_status_t *status)" .PP Get the status code of the current transfer\&. Get the status of the last transfer to be initiated using the given handle\&. Only one transfer can be active on a handle at a given time, therefore new transfers may only be initiated when the current status is one of the following: GLOBUS_GASS_COPY_STATUS_NONE, GLOBUS_GASS_COPY_STATUS_DONE_SUCCESS, GLOBUS_GASS_COPY_STATUS_DONE_FAILURE, GLOBUS_GASS_COPY_STATUS_DONE_CANCELLED .PP \fBParameters:\fP .RS 4 \fIhandle\fP A globus_gass_copy_handle .br \fIstatus\fP Will be one of the following: GLOBUS_GASS_COPY_STATUS_NONE (No transfers have been initiated using this handle\&.) GLOBUS_GASS_COPY_STATUS_PENDING (A transfer is currently being set up\&.) GLOBUS_GASS_COPY_STATUS_TRANSFER_IN_PROGRESS (There is currently a transfer in progress\&.) GLOBUS_GASS_COPY_STATUS_CANCEL (The last transfer initiated using this handle has been cancelled by the user before completing, and is in the process of being cleaned up\&.) GLOBUS_GASS_COPY_STATUS_FAILURE (The last transfer initiated using this handle failed, and is in the process of being cleaned up\&.) GLOBUS_GASS_COPY_STATUS_DONE_SUCCESS (The last transfer initiated using this handle has completed successfully\&.) GLOBUS_GASS_COPY_STATUS_DONE_FAILURE (The last transfer initiated using this handle failed and has finished cleaning up\&.) GLOBUS_GASS_COPY_STATUS_DONE_CANCELLED (The last transfer initiated using this handle was cancelled and has finished cleaning up\&.) .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "const char* \fBglobus_gass_copy_get_status_string\fP (globus_gass_copy_handle_t *handle)" .PP Get the status string of the current transfer\&. Get the status of the last transfer to be initiated using the given handle\&. Only one transfer can be active on a handle at a given time, therefore new transfers may only be initiated when the current status is one of the following: GLOBUS_GASS_COPY_STATUS_NONE, GLOBUS_GASS_COPY_STATUS_DONE_SUCCESS, GLOBUS_GASS_COPY_STATUS_DONE_FAILURE, GLOBUS_GASS_COPY_STATUS_DONE_CANCELLED .PP \fBParameters:\fP .RS 4 \fIhandle\fP A globus_gass_copy_handle .RE .PP \fBReturns:\fP .RS 4 Returns a pointer to a character string describing the current status .RE .PP .PP References globus_gass_copy_get_status()\&. .SS "globus_result_t \fBglobus_gass_copy_url_to_url\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, char *dest_url, globus_gass_copy_attr_t *dest_attr)" .PP Transfer data from source URL to destination URL (blocking) \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_url\fP transfer data from this URL .br \fIsource_attr\fP Attributes describing how the transfer form the source should be done .br \fIdest_url\fP transfer data to this URL .br \fIdest_attr\fP Attributes describing how the transfer to the destination should be done .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was completed successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_url_to_handle()\fP \fBglobus_gass_copy_handle_to_url()\fP .RE .PP .PP References GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_register_url_to_url()\&. .SS "globus_result_t \fBglobus_gass_copy_url_to_handle\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, globus_io_handle_t *dest_handle)" .PP Transfer data from source URL to an IO handle (blocking) \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_url\fP transfer data from this URL .br \fIsource_attr\fP Attributes describing how the transfer form the source should be done .br \fIdest_handle\fP transfer data to this IO handle .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was completed successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_url_to_url()\fP \fBglobus_gass_copy_handle_to_url()\fP .RE .PP .PP References GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_register_url_to_handle()\&. .SS "globus_result_t \fBglobus_gass_copy_handle_to_url\fP (globus_gass_copy_handle_t *handle, globus_io_handle_t *source_handle, char *dest_url, globus_gass_copy_attr_t *dest_attr)" .PP Transfer data from an IO handle to destination URL (blocking) \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_handle\fP transfer data from this IO handle .br \fIdest_url\fP transfer data to this URL .br \fIdest_attr\fP Attributes describing how the transfer to the destination should be done .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was completed successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_url_to_url()\fP \fBglobus_gass_copy_url_to_handle()\fP .RE .PP .PP References GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_register_handle_to_url()\&. .SS "globus_result_t \fBglobus_gass_copy_register_url_to_url\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, char *dest_url, globus_gass_copy_attr_t *dest_attr, globus_gass_copy_callback_tcallback_func, void *callback_arg)" .PP Transfer data from source URL to destination URL (non-blocking) This functions initiates a transfer from source URL to destination URL, then returns immediately\&. .PP When the transfer is completed or if the transfer is aborted, the callback_func will be invoked with the final status of the transfer\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_url\fP transfer data from this URL .br \fIsource_attr\fP Attributes describing how the transfer form the source should be done .br \fIdest_url\fP transfer data to this URL .br \fIdest_attr\fP Attributes describing how the transfer to the destination should be done .br \fIcallback_func\fP Callback to be invoked once the transfer is completed\&. .br \fIcallback_arg\fP Argument to be passed to the callback_func\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was initiated successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_register_url_to_handle()\fP, \fBglobus_gass_copy_register_handle_to_url()\fP .RE .PP .PP References globus_i_gass_copy_state_target_s::attr, globus_gass_copy_state_s::cancel, globus_gass_copy_state_s::dest, globus_gass_copy_get_url_mode(), GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_state_s::source\&. .SS "globus_result_t \fBglobus_gass_copy_register_url_to_handle\fP (globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, globus_io_handle_t *dest_handle, globus_gass_copy_callback_tcallback_func, void *callback_arg)" .PP Transfer data from source URL to an IO handle (non-blocking) This functions initiates a transfer from source URL to an IO handle, then returns immediately\&. .PP When the transfer is completed or if the transfer is aborted, the callback_func will be invoked with the final status of the transfer\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_url\fP transfer data from this URL .br \fIsource_attr\fP Attributes describing how the transfer form the source should be done .br \fIdest_handle\fP transfer data to this IO handle .br \fIcallback_func\fP Callback to be invoked once the transfer is completed\&. .br \fIcallback_arg\fP Argument to be passed to the callback_func\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was initiated successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_register_url_to_url()\fP, \fBglobus_gass_copy_register_handle_to_url()\fP .RE .PP .PP References globus_gass_copy_state_s::cancel, globus_gass_copy_state_s::dest, globus_gass_copy_get_url_mode(), GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_state_s::source\&. .SS "globus_result_t \fBglobus_gass_copy_register_handle_to_url\fP (globus_gass_copy_handle_t *handle, globus_io_handle_t *source_handle, char *dest_url, globus_gass_copy_attr_t *dest_attr, globus_gass_copy_callback_tcallback_func, void *callback_arg)" .PP Transfer data from an IO handle to destination URL (non-blocking) This functions initiates a transfer from an IO handle to destination URL, then returns immediately\&. .PP When the transfer is completed or if the transfer is aborted, the callback_func will be invoked with the final status of the transfer\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to perform the copy operation .br \fIsource_handle\fP transfer data from this IO handle .br \fIdest_url\fP transfer data to this URL .br \fIdest_attr\fP Attributes describing how the transfer to the destination should be done .br \fIcallback_func\fP Callback to be invoked once the transfer is completed\&. .br \fIcallback_arg\fP Argument to be passed to the callback_func\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if the transfer was initiated successfully, or a result pointing to an object of one of the the following error types: .RE .PP \fBReturn values:\fP .RS 4 \fIGLOBUS_GASS_COPY_ERROR_TYPE_NULL_PARAMETER\fP The handle was equal to GLOBUS_NULL, so the transfer could not processed\&. .br \fIGLOBUS_GASS_COPY_ERROR_TYPE_next_error\fP next error description .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_register_url_to_url()\fP, \fBglobus_gass_copy_register_url_to_handle()\fP .RE .PP .PP References globus_gass_copy_state_s::cancel, globus_gass_copy_state_s::dest, globus_gass_copy_get_url_mode(), GLOBUS_GASS_COPY_MODULE, and globus_gass_copy_state_s::source\&. .SS "globus_result_t \fBglobus_gass_copy_cache_url_state\fP (globus_gass_copy_handle_t *handle, char *url)" .PP Cache connections to an FTP or GSIFTP server\&. Explicitly cache connections to URL server\&. When an URL is cached, the connection to the URL server will not be closed after a file transfer completes\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Handle which will contain a cached connection to the URL server\&. .br \fIurl\fP The URL of the FTP or GSIFTP server to cache\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_flush_url_state\fP (globus_gass_copy_handle_t *handle, char *url)" .PP Remove a cached connection to an FTP or GSIFTP server\&. Explicitly remove a cached connection to an FTP or GSIFTP server\&. If an idle connection to an FTP server exists, it will be closed\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP Handle which contains a cached connection to the URL server\&. .br \fIurl\fP The URL of the FTP or GSIFTP server to remove\&. .RE .PP \fBReturns:\fP .RS 4 This function returns GLOBUS_SUCCESS if successful, or a globus_result_t indicating the error that occurred\&. .RE .PP .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_set_user_pointer\fP (globus_gass_copy_handle_t *handle, void *user_pointer)" .PP Set a pointer in the handle to point at user-allocated memory\&. .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_get_user_pointer\fP (globus_gass_copy_handle_t *handle, void **user_data)" .PP Get the pointer in the handle that points to user-allocated memory\&. .PP References GLOBUS_GASS_COPY_MODULE\&. .SS "globus_result_t \fBglobus_gass_copy_cancel\fP (globus_gass_copy_handle_t *handle, globus_gass_copy_callback_tcancel_callback, void *cancel_callback_arg)" .PP Cancel the current transfer associated with this handle,\&. store the cancel_callback and cancel_callback_arg in the handle\&. Needed because the ftp callback will be the one given from the original globus_ftp_client_third_party_transfer() call\&. .PP References GLOBUS_GASS_COPY_MODULE, and globus_l_gass_copy_target_cancel()\&. .SS "globus_result_t \fBglobus_l_gass_copy_target_cancel\fP (\fBglobus_i_gass_copy_cancel_t\fP *cancel_info)" .PP Cancel the source or destination transfer in progress\&. .PP References globus_i_gass_copy_state_target_s::data, globus_i_gass_copy_state_target_s::ftp, globus_i_gass_copy_state_target_s::gass, GLOBUS_GASS_COPY_MODULE, globus_i_gass_copy_state_target_s::io, globus_i_gass_copy_state_target_s::mode, and globus_i_gass_copy_state_target_s::url\&. .SH "Author" .PP Generated automatically by Doxygen for globus gass copy from the source code\&.