.TH "globus_gass_copy" 3 "Wed Feb 27 2019" "Version 10.4" "globus_gass_copy" \" -*- nroff -*- .ad l .nh .SH NAME globus_gass_copy \- Protocol-Independent File Transfer\&. .SH SYNOPSIS .br .PP .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBglobus_gass_copy_handle_s\fP" .br .RI "Copy Handle\&. " .ti -1c .RI "struct \fBglobus_gass_copy_attr_s\fP" .br .RI "Attributes\&. " .ti -1c .RI "struct \fBglobus_gass_copy_handleattr_s\fP" .br .RI "Handle Attributes\&. " .ti -1c .RI "struct \fBglobus_gass_copy_glob_stat_t\fP" .br .RI "Glob expanded entry information\&. " .in -1c .SS "Macros" .in +1c .ti -1c .RI "#define \fBGLOBUS_GASS_COPY_MODULE\fP (&globus_i_gass_copy_module)" .br .RI "Module Descriptor\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef void(* \fBglobus_gass_copy_performance_cb_t\fP) (void *user_arg, \fBglobus_gass_copy_handle_t\fP *handle, globus_off_t total_bytes, float instantaneous_throughput, float avg_throughput)" .br .RI "Performance Callback\&. " .ti -1c .RI "typedef void(* \fBglobus_gass_copy_callback_t\fP) (void *callback_arg, \fBglobus_gass_copy_handle_t\fP *handle, globus_object_t *error)" .br .RI "Copy Callback\&. " .ti -1c .RI "typedef struct \fBglobus_gass_copy_attr_s\fP \fBglobus_gass_copy_attr_t\fP" .br .RI "Attributes\&. " .ti -1c .RI "typedef struct \fBglobus_gass_copy_handleattr_s\fP \fBglobus_gass_copy_handleattr_t\fP" .br .RI "Handle Attributes\&. " .ti -1c .RI "typedef void(* \fBglobus_gass_copy_glob_entry_cb_t\fP) (const char *url, const \fBglobus_gass_copy_glob_stat_t\fP *info_stat, void *user_arg)" .br .RI "Gass copy glob entry callback\&. " .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBglobus_gass_copy_status_t\fP .RI "Status States\&. "" .br .ti -1c .RI "enum \fBglobus_gass_copy_url_mode_t\fP .RI "URL Modes\&. "" .br .ti -1c .RI "enum \fBglobus_gass_copy_glob_entry_t\fP " .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "globus_result_t \fBglobus_gass_copy_handle_init\fP (\fBglobus_gass_copy_handle_t\fP *handle, \fBglobus_gass_copy_handleattr_t\fP *attr)" .br .RI "Initialize a GASS Copy handle\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_handle_destroy\fP (\fBglobus_gass_copy_handle_t\fP *handle)" .br .RI "Destroy a GASS Copy handle\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_buffer_length\fP (\fBglobus_gass_copy_handle_t\fP *handle, int length)" .br .RI "Set the size of the buffer to be used for doing transfers\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_buffer_length\fP (\fBglobus_gass_copy_handle_t\fP *handle, int *length)" .br .RI "Get the size of the transfer buffer\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_no_third_party_transfers\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_bool_t no_third_party_transfers)" .br .RI "Enable/Disable third-party transfers\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_no_third_party_transfers\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_bool_t *no_third_party_transfers)" .br .RI "Query third-party transfer status\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_allocate\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_bool_t send_allo)" .br .RI "Set allo on or off\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_stat_on_expand\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_bool_t always_stat)" .br .RI "Make globus_gass_copy_expand_url() always send stat info\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_checksum_algo\fP (\fBglobus_gass_copy_handle_t\fP *handle, char *algo, \fBglobus_gass_copy_handle_t\fP *cksm_handle)" .br .RI "Stores the checksum algorithm to use with all checksum operations\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_checksum\fP (\fBglobus_gass_copy_handle_t\fP *handle, char *cksm)" .br .RI "Copies the checksum to the handle's checksum parameter\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_set_partial_offsets\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_off_t offset, globus_off_t end_offset)" .br .RI "Set partial file offsets\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_partial_offsets\fP (\fBglobus_gass_copy_handle_t\fP *handle, globus_off_t *offset, globus_off_t *end_offset)" .br .RI "Get partial transfer offsets\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_init\fP (\fBglobus_gass_copy_attr_t\fP *attr)" .br .RI "Initialize an attribute structure\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_ftp\fP (\fBglobus_gass_copy_attr_t\fP *attr, globus_ftp_client_operationattr_t *ftp_attr)" .br .RI "Set the attributes for ftp/gsiftp transfers\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_io\fP (\fBglobus_gass_copy_attr_t\fP *attr, globus_io_attr_t *io_attr)" .br .RI "Set file transfers attributes\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_attr_set_gass\fP (\fBglobus_gass_copy_attr_t\fP *attr, globus_gass_transfer_requestattr_t *gass_attr)" .br .RI "Set the http/https attributes\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_url_mode\fP (char *url, \fBglobus_gass_copy_url_mode_t\fP *mode)" .br .RI "Get URL scheme\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_register_performance_cb\fP (\fBglobus_gass_copy_handle_t\fP *handle, \fBglobus_gass_copy_performance_cb_t\fP callback, void *user_arg)" .br .RI "Register a performance information callback\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_get_status\fP (\fBglobus_gass_copy_handle_t\fP *handle, \fBglobus_gass_copy_status_t\fP *status)" .br .RI "Get the status code of a transfer\&. " .ti -1c .RI "const char * \fBglobus_gass_copy_get_status_string\fP (\fBglobus_gass_copy_handle_t\fP *handle)" .br .RI "Get the status string of a transfer\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_glob_expand_url\fP (\fBglobus_gass_copy_handle_t\fP *handle, const char *url, \fBglobus_gass_copy_attr_t\fP *attr, \fBglobus_gass_copy_glob_entry_cb_t\fP entry_cb, void *user_arg)" .br .RI "Expand globbed url\&. " .ti -1c .RI "globus_result_t \fBglobus_gass_copy_mkdir\fP (\fBglobus_gass_copy_handle_t\fP *handle, char *url, \fBglobus_gass_copy_attr_t\fP *attr)" .br .RI "Make directory\&. " .in -1c .SH "Detailed Description" .PP Protocol-Independent File Transfer\&. The Globus GASS Copy library is motivated by the desire to provide a uniform interface to transfer files specified by different protocols\&. .PP The goals in doing this are to: .PP .IP "\(bu" 2 Provide a robust way to describe and apply file transfer properties for a variety of protocols\&. These include the standard HTTP, FTP and GSIFTP options\&. Some of the new file transfer capabilities in GSIFTP are parallel, striping, authentication and TCP buffer sizing\&. .IP "\(bu" 2 Provide a service to support nonblocking file transfer and handle asynchronous file and network events\&. .IP "\(bu" 2 Provide a simple and portable way to implement file transfers\&. .PP .PP Any program that uses Globus GASS Copy functions must include 'globus_gass_copy\&.h'\&. .PP Globus GASS Copy uses standard Globus module activation and deactivation\&. Before any Globus GASS Copy functions are called, the following function must be called: .PP .PP .nf globus_module_activate(GLOBUS_GASS_COPY_MODULE) .fi .PP .PP This function returns GLOBUS_SUCCESS if Globus GASS Copy was successfully initialized, and you are therefore allowed to subsequently call Globus GASS Copy functions\&. Otherwise, an error code is returned, and Globus GASS Copy functions should not be subsequently called\&. This function may be called multiple times\&. .PP To deactivate Globus GASS Copy, the following function must be called: .PP .PP .nf globus_module_deactivate(GLOBUS_GASS_COPY_MODULE) .fi .PP .PP This function should be called once for each time Globus GASS Copy was activated\&. .SH "Typedef Documentation" .PP .SS "typedef struct \fBglobus_gass_copy_attr_s\fP \fBglobus_gass_copy_attr_t\fP" .PP Attributes\&. Contains any/all attributes that are required to perform the supported transfer methods (ftp, gass, io)\&. .SS "typedef void(* globus_gass_copy_callback_t) (void *callback_arg, \fBglobus_gass_copy_handle_t\fP *handle, globus_object_t *error)" .PP Copy Callback\&. Signature of a callback from globus_gass_copy_register_*() functions\&. (nonblocking transfer functions) .SS "typedef void(* globus_gass_copy_glob_entry_cb_t) (const char *url, const \fBglobus_gass_copy_glob_stat_t\fP *info_stat, void *user_arg)" .PP Gass copy glob entry callback\&. This callback is passed as a parameter to \fBglobus_gass_copy_glob_expand_url()\fP\&. It is called once for each entry that the original expands to\&. .PP \fBParameters:\fP .RS 4 \fIurl\fP The full url to the expanded entry\&. A directory entry will end in a forward slash '/'\&. .br \fIstat\fP A pointer to a \fBglobus_gass_copy_glob_stat_t\fP containing information about the entry\&. .br \fIuser_arg\fP The user_arg passed to globus_gass_copy_glob_expand() .RE .PP \fBSee also:\fP .RS 4 \fBglobus_gass_copy_glob_stat_t\fP, \fBglobus_gass_copy_glob_expand_url\fP .RE .PP .SS "typedef struct \fBglobus_gass_copy_handleattr_s\fP \fBglobus_gass_copy_handleattr_t\fP" .PP Handle Attributes\&. Contains any/all attributes that are required to create lower-level handles (ftp, gass, io)\&. .SS "typedef void(* globus_gass_copy_performance_cb_t) (void *user_arg, \fBglobus_gass_copy_handle_t\fP *handle, globus_off_t total_bytes, float instantaneous_throughput, float avg_throughput)" .PP Performance Callback\&. This callback is registered with 'globus_gass_copy_register_performance_cb' It will be called during a transfer to supply performance information on current transfer\&. Its frequency will be at most one per second, but it is possible to receive no callbacks\&. This is possible in very short transfers and in ftp transfers in which the server does not provide performance information\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP the gass copy handle this transfer is occurring on .br \fIuser_arg\fP a user pointer registered with 'globus_gass_copy_register_performance_cb' .br \fItotal_bytes\fP the total number of bytes transfer so far .br \fIinstantaneous_throughput\fP instantaneous rate of transfer (since last callback or start) (bytes / sec) .br \fIavg_throughput\fP the avg thoughput calculated since the start of the transfer (bytes / sec) .RE .PP \fBReturns:\fP .RS 4 .IP "\(bu" 2 n/a .PP .RE .PP .SH "Enumeration Type Documentation" .PP .SS "enum \fBglobus_gass_copy_glob_entry_t\fP" globbed entry types .SH "Function Documentation" .PP .SS "globus_result_t globus_gass_copy_attr_init (\fBglobus_gass_copy_attr_t\fP * 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 .SS "globus_result_t globus_gass_copy_attr_set_ftp (\fBglobus_gass_copy_attr_t\fP * 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 .SS "globus_result_t globus_gass_copy_attr_set_gass (\fBglobus_gass_copy_attr_t\fP * attr, globus_gass_transfer_requestattr_t * gass_attr)" .PP Set the http/https attributes\&. 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 .SS "globus_result_t globus_gass_copy_attr_set_io (\fBglobus_gass_copy_attr_t\fP * attr, globus_io_attr_t * io_attr)" .PP Set file transfers attributes\&. 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 .SS "globus_result_t globus_gass_copy_get_buffer_length (\fBglobus_gass_copy_handle_t\fP * handle, int * length)" .PP Get the size of the transfer buffer\&. 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 .SS "globus_result_t globus_gass_copy_get_no_third_party_transfers (\fBglobus_gass_copy_handle_t\fP * handle, globus_bool_t * no_third_party_transfers)" .PP Query third-party transfer status\&. 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 .SS "globus_result_t globus_gass_copy_get_partial_offsets (\fBglobus_gass_copy_handle_t\fP * handle, globus_off_t * offset, globus_off_t * end_offset)" .PP Get partial transfer offsets\&. 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 .SS "globus_result_t globus_gass_copy_get_status (\fBglobus_gass_copy_handle_t\fP * handle, \fBglobus_gass_copy_status_t\fP * status)" .PP Get the status code of a 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 .SS "const char* globus_gass_copy_get_status_string (\fBglobus_gass_copy_handle_t\fP * handle)" .PP Get the status string of a 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 .SS "globus_result_t globus_gass_copy_get_url_mode (char * url, \fBglobus_gass_copy_url_mode_t\fP * mode)" .PP Get URL scheme\&. 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 .SS "globus_result_t globus_gass_copy_glob_expand_url (\fBglobus_gass_copy_handle_t\fP * handle, const char * url, \fBglobus_gass_copy_attr_t\fP * attr, \fBglobus_gass_copy_glob_entry_cb_t\fP entry_cb, void * user_arg)" .PP Expand globbed url\&. This function expands wildcards in a globbed url, and calls entry_cb() on each one\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP A gass copy handle to use for the operation\&. .br \fIurl\fP The URL to expand\&. The URL may be an ftp, gsiftp or file URL\&. Wildcard characters supported are '?' '*' '[ ]' in the filename portion of the url\&. .br \fIattr\fP Gass copy attributes for this operation\&. .br \fIentry_cb\fP Function to call with information about each entry .br \fIuser_arg\fP An argument to pass to entry_cb() .RE .PP \fBReturns:\fP .RS 4 This function returns an error when any of these conditions are true: .IP "\(bu" 2 handle is GLOBUS_NULL .IP "\(bu" 2 url is GLOBUS_NULL .IP "\(bu" 2 url cannot be parsed .IP "\(bu" 2 url is not a ftp, gsiftp or file url .PP .RE .PP .SS "globus_result_t globus_gass_copy_handle_destroy (\fBglobus_gass_copy_handle_t\fP * 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 .SS "globus_result_t globus_gass_copy_handle_init (\fBglobus_gass_copy_handle_t\fP * handle, \fBglobus_gass_copy_handleattr_t\fP * 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 .SS "globus_result_t globus_gass_copy_mkdir (\fBglobus_gass_copy_handle_t\fP * handle, char * url, \fBglobus_gass_copy_attr_t\fP * attr)" .PP Make directory\&. This function creates a directory given a ftp or file url\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP A gass copy handle to use for the mkdir operation\&. .br \fIurl\fP The URL for the directory to create\&. The URL may be an ftp, gsiftp or file URL\&. .br \fIattr\fP Gass copy attributes for this operation\&. .RE .PP \fBReturns:\fP .RS 4 This function returns an error when any of these conditions are true: .IP "\(bu" 2 handle is GLOBUS_NULL .IP "\(bu" 2 url is GLOBUS_NULL .IP "\(bu" 2 url cannot be parsed .IP "\(bu" 2 url is not a ftp, gsiftp or file url .IP "\(bu" 2 the directory could not be created .PP .RE .PP .SS "globus_result_t globus_gass_copy_register_performance_cb (\fBglobus_gass_copy_handle_t\fP * handle, \fBglobus_gass_copy_performance_cb_t\fP callback, 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 .SS "globus_result_t globus_gass_copy_set_buffer_length (\fBglobus_gass_copy_handle_t\fP * handle, int length)" .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 .SS "globus_result_t globus_gass_copy_set_checksum (\fBglobus_gass_copy_handle_t\fP * handle, char * cksm)" .PP Copies the checksum to the handle's checksum parameter\&. This function frees any existing checksum value stored in the handle, then copies the passed in checksum to the handle\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP The handle to the object to which the checksum shall be set\&. .br \fIcksm\fP The checksum string to be set to the handle\&. .RE .PP \fBReturns:\fP .RS 4 This function always returns GLOBUS_SUCCESS .RE .PP .SS "globus_result_t globus_gass_copy_set_checksum_algo (\fBglobus_gass_copy_handle_t\fP * handle, char * algo, \fBglobus_gass_copy_handle_t\fP * cksm_handle)" .PP Stores the checksum algorithm to use with all checksum operations\&. This function sets the checksum algorithm and the handle to be used for checksum calculations to the passed in handle\&. .PP \fBParameters:\fP .RS 4 \fIhandle\fP This is the handle to which the checksum algorithm and handle are set\&. .br \fIalgo\fP This is the algorithm to set in the handle\&. .br \fIcksm_handle\fP This is the handle that is used for performing checksum operations that will be set in the handle\&. .RE .PP \fBReturns:\fP .RS 4 This function always returns GLOBUS_SUCCESS .RE .PP .SS "globus_result_t globus_gass_copy_set_no_third_party_transfers (\fBglobus_gass_copy_handle_t\fP * handle, globus_bool_t no_third_party_transfers)" .PP Enable/Disable third-party transfers\&. 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 .SS "globus_result_t globus_gass_copy_set_partial_offsets (\fBglobus_gass_copy_handle_t\fP * handle, globus_off_t offset, globus_off_t end_offset)" .PP Set partial file offsets\&. 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 .SH "Author" .PP Generated automatically by Doxygen for globus_gass_copy from the source code\&.