17 #ifndef GLOBUS_GASS_COPY_H 18 #define GLOBUS_GASS_COPY_H 20 #include <openssl/evp.h> 27 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET 59 #include "globus_io.h" 96 #define GLOBUS_GASS_COPY_MODULE (&globus_i_gass_copy_module) 101 #define _GASCSL(s) globus_common_i18n_get_string( \ 102 GLOBUS_GASS_COPY_MODULE, \ 105 #define CKSM_SIZE (EVP_MAX_MD_SIZE * 2 + 1) 107 typedef struct globus_gass_copy_state_s globus_gass_copy_state_t;
109 typedef struct globus_gass_copy_perf_info_s globus_gass_copy_perf_info_t;
146 globus_off_t total_bytes,
147 float instantaneous_throughput,
148 float avg_throughput);
160 globus_object_t * error);
168 GLOBUS_GASS_COPY_STATUS_NONE,
169 GLOBUS_GASS_COPY_STATUS_PENDING,
170 GLOBUS_GASS_COPY_STATUS_INITIAL,
171 GLOBUS_GASS_COPY_STATUS_SOURCE_READY,
172 GLOBUS_GASS_COPY_STATUS_TRANSFER_IN_PROGRESS,
173 GLOBUS_GASS_COPY_STATUS_READ_COMPLETE,
174 GLOBUS_GASS_COPY_STATUS_WRITE_COMPLETE,
175 GLOBUS_GASS_COPY_STATUS_DONE,
176 GLOBUS_GASS_COPY_STATUS_FAILURE,
177 GLOBUS_GASS_COPY_STATUS_CANCEL,
178 GLOBUS_GASS_COPY_STATUS_DONE_SUCCESS,
179 GLOBUS_GASS_COPY_STATUS_DONE_FAILURE,
180 GLOBUS_GASS_COPY_STATUS_DONE_CANCELLED
189 GLOBUS_GASS_COPY_URL_MODE_UNSUPPORTED,
190 GLOBUS_GASS_COPY_URL_MODE_FTP,
191 GLOBUS_GASS_COPY_URL_MODE_GASS,
192 GLOBUS_GASS_COPY_URL_MODE_IO
278 globus_off_t partial_end_offset;
279 globus_off_t partial_bytes_remaining;
302 globus_io_attr_t * io;
303 globus_gass_transfer_requestattr_t * gass_requestattr;
329 globus_gass_copy_handleattr_init(
333 globus_gass_copy_handleattr_destroy(
337 globus_gass_copy_handleattr_set_ftp_attr(
370 globus_off_t * offset,
371 globus_off_t * end_offset);
378 globus_off_t end_offset);
415 globus_gass_copy_get_ftp_handle(
433 globus_io_attr_t * io_attr);
438 globus_gass_transfer_requestattr_t * gass_attr);
456 globus_io_handle_t * dest_handle);
461 globus_io_handle_t * source_handle,
476 void * callback_arg);
483 globus_io_handle_t * dest_handle,
485 void * callback_arg);
490 globus_io_handle_t * source_handle,
494 void * callback_arg);
519 void * cancel_callback_arg);
562 globus_gass_copy_attr_set_tcpbuffer(
568 globus_gass_copy_attr_set_parallelism(
574 globus_gass_copy_attr_set_striping(
576 globus_ftp_control_striping_t * striping_info);
580 globus_gass_copy_attr_set_authorization(
582 globus_io_authorization_t * authorization_info);
586 globus_gass_copy_attr_set_secure_channel(
588 globus_io_secure_channel_t * secure_channel_info);
596 GLOBUS_GASS_COPY_GLOB_ENTRY_UNKNOWN,
597 GLOBUS_GASS_COPY_GLOB_ENTRY_FILE,
598 GLOBUS_GASS_COPY_GLOB_ENTRY_DIR,
599 GLOBUS_GASS_COPY_GLOB_ENTRY_OTHER
736 globus_gass_copy_cksm(
742 const char * algorithm,
746 globus_gass_copy_cksm_async(
752 const char * algorithm,
755 void * callback_arg);
758 globus_gass_copy_stat(
globus_bool_t external_third_party
Definition: globus_gass_copy.h:227
globus_gass_copy_status_t
Status States.
Definition: globus_gass_copy.h:166
globus_result_t globus_gass_copy_attr_set_gass(globus_gass_copy_attr_t *attr, globus_gass_transfer_requestattr_t *gass_attr)
Set the http/https attributes.
Definition: globus_gass_copy.c:1075
globus_off_t partial_offset
Definition: globus_gass_copy.h:277
globus_result_t globus_gass_copy_handle_to_url(globus_gass_copy_handle_t *handle, globus_io_handle_t *source_handle, char *dest_url, globus_gass_copy_attr_t *dest_attr)
Blocking transfer from an IO handle to an URL.
Definition: globus_gass_copy.c:5229
globus_result_t globus_gass_copy_set_buffer_length(globus_gass_copy_handle_t *handle, int length)
Set the size of the buffer to be used for doing transfers.
Definition: globus_gass_copy.c:527
globus_gass_copy_glob_entry_t type
Definition: globus_gass_copy.h:610
globus_result_t globus_gass_copy_set_checksum_algo(globus_gass_copy_handle_t *handle, char *algo, globus_gass_copy_handle_t *cksm_handle)
Stores the checksum algorithm to use with all checksum operations.
Definition: globus_gass_copy.c:741
void(* globus_gass_copy_performance_cb_t)(void *user_arg, globus_gass_copy_handle_t *handle, globus_off_t total_bytes, float instantaneous_throughput, float avg_throughput)
Performance Callback.
Definition: globus_gass_copy.h:143
Handle Attributes.
Definition: globus_gass_copy.h:313
const char * globus_gass_copy_get_status_string(globus_gass_copy_handle_t *handle)
Get the status string of a transfer.
Definition: globus_gass_copy.c:1730
globus_gass_copy_callback_t user_callback
Definition: globus_gass_copy.h:232
void(* globus_gass_copy_callback_t)(void *callback_arg, globus_gass_copy_handle_t *handle, globus_object_t *error)
Copy Callback.
Definition: globus_gass_copy.h:157
FTP Client handle implementation.
Definition: globus_i_ftp_client.h:522
globus_bool_t no_third_party_transfers
Definition: globus_gass_copy.h:265
Handle attributes.
Definition: globus_i_ftp_client.h:193
globus_result_t globus_gass_copy_flush_url_state(globus_gass_copy_handle_t *handle, char *url)
Remove an FTP or GridFTP cached connection.
Definition: globus_gass_copy.c:6143
globus_result_t globus_gass_copy_set_no_third_party_transfers(globus_gass_copy_handle_t *handle, globus_bool_t no_third_party_transfers)
Enable/Disable third-party transfers.
Definition: globus_gass_copy.c:610
globus_result_t globus_gass_copy_get_url_mode(char *url, globus_gass_copy_url_mode_t *mode)
Get URL scheme.
Definition: globus_gass_copy.c:1122
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
globus_result_t globus_gass_copy_get_status(globus_gass_copy_handle_t *handle, globus_gass_copy_status_t *status)
Get the status code of a transfer.
Definition: globus_gass_copy.c:1656
Glob expanded entry information.
Definition: globus_gass_copy.h:606
globus_result_t globus_gass_copy_register_url_to_handle(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)
Nonblocking transfer from an URL to an IO handle.
Definition: globus_gass_copy.c:5775
void * callback_arg
Definition: globus_gass_copy.h:237
char * unique_id
Definition: globus_gass_copy.h:617
globus_result_t globus_gass_copy_register_url_to_url(globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *dest_attr, char *dest_url, globus_gass_copy_attr_t *source_attr, globus_gass_copy_callback_t callback_func, void *callback_arg)
Definition: globus_gass_copy.c:5376
struct globus_gass_copy_attr_s globus_gass_copy_attr_t
Attributes.
globus_result_t globus_gass_copy_register_handle_to_url(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)
Definition: globus_gass_copy.c:5935
Attributes.
Definition: globus_gass_copy.h:299
globus_result_t globus_gass_copy_register_performance_cb(globus_gass_copy_handle_t *handle, globus_gass_copy_performance_cb_t callback, void *user_arg)
Register a performance information callback.
Definition: globus_gass_copy.c:1199
globus_result_t globus_gass_copy_get_no_third_party_transfers(globus_gass_copy_handle_t *handle, globus_bool_t *no_third_party_transfers)
Query third-party transfer status.
Definition: globus_gass_copy.c:669
globus_gass_copy_glob_entry_t
Definition: globus_gass_copy.h:595
Control tcpbuffer attribute structure.
Definition: globus_ftp_control.h:383
globus_bool_t always_stat_on_expand
Definition: globus_gass_copy.h:289
globus_result_t globus_gass_copy_cache_url_state(globus_gass_copy_handle_t *handle, char *url)
Cache connections to an FTP or GridFTP server.
Definition: globus_gass_copy.c:6073
globus_result_t globus_gass_copy_get_buffer_length(globus_gass_copy_handle_t *handle, int *length)
Get the size of the transfer buffer.
Definition: globus_gass_copy.c:567
void(* globus_gass_copy_glob_entry_cb_t)(const char *url, const globus_gass_copy_glob_stat_t *info_stat, void *user_arg)
Gass copy glob entry callback.
Definition: globus_gass_copy.h:661
globus_result_t globus_gass_copy_set_stat_on_expand(globus_gass_copy_handle_t *handle, globus_bool_t always_stat)
Make globus_gass_copy_expand_url() always send stat info.
Definition: globus_gass_copy.c:712
The globus_i_ftp_client_operationattr_t is a pointer to this structure type.
Definition: globus_i_ftp_client.h:131
globus_result_t globus_gass_copy_handle_destroy(globus_gass_copy_handle_t *handle)
Destroy a GASS Copy handle.
Definition: globus_gass_copy.c:383
globus_object_t * err
Definition: globus_gass_copy.h:252
globus_gass_copy_state_t * state
Definition: globus_gass_copy.h:210
int buffer_length
Definition: globus_gass_copy.h:257
Copy Handle.
Definition: globus_gass_copy.h:199
globus_result_t globus_gass_copy_set_user_pointer(globus_gass_copy_handle_t *handle, void *user_data)
Set the user pointer in a handle.
Definition: globus_gass_copy.c:6204
globus_result_t globus_gass_copy_get_user_pointer(globus_gass_copy_handle_t *handle, void **user_data)
Get the user pointer in a handle.
Definition: globus_gass_copy.c:6232
globus_result_t globus_gass_copy_attr_init(globus_gass_copy_attr_t *attr)
Initialize an attribute structure.
Definition: globus_gass_copy.c:928
globus_result_t globus_gass_copy_set_partial_offsets(globus_gass_copy_handle_t *handle, globus_off_t offset, globus_off_t end_offset)
Set partial file offsets.
Definition: globus_gass_copy.c:805
globus_result_t globus_gass_copy_set_allocate(globus_gass_copy_handle_t *handle, globus_bool_t send_allo)
Set allo on or off.
Definition: globus_gass_copy.c:698
int mode
Definition: globus_gass_copy.h:627
struct globus_gass_copy_handleattr_s globus_gass_copy_handleattr_t
Handle Attributes.
globus_result_t globus_gass_copy_get_partial_offsets(globus_gass_copy_handle_t *handle, globus_off_t *offset, globus_off_t *end_offset)
Get partial transfer offsets.
Definition: globus_gass_copy.c:851
globus_bool_t send_allo
Definition: globus_gass_copy.h:284
globus_gass_copy_url_mode_t
URL Modes.
Definition: globus_gass_copy.h:187
globus_result_t globus_gass_copy_url_to_handle(globus_gass_copy_handle_t *handle, char *source_url, globus_gass_copy_attr_t *source_attr, globus_io_handle_t *dest_handle)
Blocking Transfer from an URL to an IO handle.
Definition: globus_gass_copy.c:5097
globus_gass_copy_callback_t user_cancel_callback
Definition: globus_gass_copy.h:242
globus_result_t globus_gass_copy_handle_init(globus_gass_copy_handle_t *handle, globus_gass_copy_handleattr_t *handle_attr)
Initialize a GASS Copy handle.
Definition: globus_gass_copy.c:304
uint32_t globus_result_t
Definition: globus_types.h:99
globus_result_t globus_gass_copy_attr_set_ftp(globus_gass_copy_attr_t *attr, globus_ftp_client_operationattr_t *ftp_attr)
Set the attributes for ftp/gsiftp transfers.
Definition: globus_gass_copy.c:977
globus_result_t globus_gass_copy_glob_expand_url(globus_gass_copy_handle_t *handle, const char *url, globus_gass_copy_attr_t *attr, globus_gass_copy_glob_entry_cb_t entry_cb, void *user_arg)
Expand globbed url.
Definition: globus_gass_copy_glob.c:133
globus_off_t size
Definition: globus_gass_copy.h:637
globus_result_t globus_gass_copy_set_checksum(globus_gass_copy_handle_t *handle, char *cksm)
Copies the checksum to the handle's checksum parameter.
Definition: globus_gass_copy.c:771
globus_result_t globus_gass_copy_url_to_url(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)
Blocking Transfer between URLs.
Definition: globus_gass_copy.c:4962
char * symlink_target
Definition: globus_gass_copy.h:622
globus_result_t globus_gass_copy_attr_set_io(globus_gass_copy_attr_t *attr, globus_io_attr_t *io_attr)
Set file transfers attributes.
Definition: globus_gass_copy.c:1026
globus_ftp_client_handle_t ftp_handle_2
Definition: globus_gass_copy.h:271
globus_result_t globus_gass_copy_mkdir(globus_gass_copy_handle_t *handle, char *url, globus_gass_copy_attr_t *attr)
Make directory.
Definition: globus_gass_copy_glob.c:1766
globus_gass_copy_status_t status
Definition: globus_gass_copy.h:204
globus_result_t globus_gass_copy_cancel(globus_gass_copy_handle_t *handle, globus_gass_copy_callback_t cancel_callback, void *cancel_callback_arg)
Cancel a transfer.
Definition: globus_gass_copy.c:6260
void * user_pointer
Definition: globus_gass_copy.h:215
globus_gass_copy_perf_info_t * performance
Definition: globus_gass_copy.h:221
void * cancel_callback_arg
Definition: globus_gass_copy.h:247
Control parallelism attribute structure
Definition: globus_ftp_control.h:261
int mdtm
Definition: globus_gass_copy.h:632
Module Descriptor.
Definition: globus_module.h:71