.TH "globus_gass_transfer_client" 3 "Tue Jul 5 2022" "Version 9.4" "globus_gass_transfer" \" -*- nroff -*- .ad l .nh .SH NAME globus_gass_transfer_client \- Client-Initiated Operations .PP \- GASS Transfer Client Operations\&. .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "int \fBglobus_gass_transfer_register_get\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_gass_transfer_callback_t callback, void *user_arg)" .br .ti -1c .RI "int \fBglobus_gass_transfer_get\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url)" .br .ti -1c .RI "int \fBglobus_gass_transfer_register_put\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length, globus_gass_transfer_callback_t callback, void *user_arg)" .br .ti -1c .RI "int \fBglobus_gass_transfer_put\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length)" .br .ti -1c .RI "int \fBglobus_gass_transfer_register_append\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length, globus_gass_transfer_callback_t callback, void *user_arg)" .br .ti -1c .RI "int \fBglobus_gass_transfer_append\fP (\fBglobus_gass_transfer_request_t\fP *request, globus_gass_transfer_requestattr_t *attr, char *url, globus_size_t length)" .br .in -1c .SH "Detailed Description" .PP GASS Transfer Client Operations\&. Client-Initiated Operations .PP One mode of using the GASS Transfer API is to initiate file transfers\&. The operations supported by the GASS Transfer API are file get, put, and append\&. These operations are provided for HTTP, and HTTPS file servers\&. The \fBprotocol module interface\fP allows support for additional protocols to be added easily\&. .PP The GASS transfer library provides both blocking and non-blocking versions of all its client functions\&. When a blocking function completes, or the non-blocking function's callback is called, the user should check the request's status to discover whether the transfer was completed successfully, denied, or referred\&. .SH "Function Documentation" .PP .SS "int globus_gass_transfer_append (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url, globus_size_t length)" Blocking file append\&. .PP This function initiates a new 'append' request of the file named by \fIurl\fP\&. The entire file will be transferred to the server if the user is authorized to do so\&. This function blocks until the GASS library has determined whether the file may be retrieved by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIappend\fP request's state\&. .PP If the server can't store the file at \fIurl\fP, but has an alternative location for the user to store to, then this function return with request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to append to\&. .br \fIlength\fP The length of the data to append to the url, if known\&. If this parameter is set to \fIGLOBUS_GASS_LENGTH_UNKNOWN\fP, then the append may fail if the protocol does not support arbitrarily-length files\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The put was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request, attr, or callback was GLOBUS_NULL\&. The put could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the put\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a append on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_register_append()\fP .RE .PP .SS "int globus_gass_transfer_get (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url)" Blocking file get\&. .PP This function initiates a new 'get' request of the file named by \fIurl\fP\&. The entire file will be transferred from the server if the file exists and user is authorized to do so\&. This function blocks until the GASS library has determined whether the file may be retrievied by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIget\fP request's state\&. This request handle must be destroyed after the user has finished processing the data associated with the callback\&. .PP If the file doesn't exist at \fIurl\fP, but a referral does, then this function will return with the request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to get .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The get was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request or attr was GLOBUS_NULL\&. The get could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the get\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a get on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_register_get()\fP .RE .PP .SS "int globus_gass_transfer_put (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url, globus_size_t length)" Blocking file put\&. .PP This function initiates a new 'put' request of the file named by \fIurl\fP\&. The entire file will be transferred to the server if the user is authorized to do so\&. This function blocks until the GASS library has determined whether the file may be retrieved by the caller, may not because it is a referral to another URL or URLs, or the server has denied the request\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIput\fP request's state\&. .PP If the server can't store the file at \fIurl\fP, but has an alternative location for the user to store to, then this function return with request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to put\&. .br \fIlength\fP The length of the data to put to the url, if known\&. If this parameter is set to \fIGLOBUS_GASS_LENGTH_UNKNOWN\fP, then the put may fail if the protocol does not support arbitrarily-length files\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The get was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request or attr was GLOBUS_NULL\&. The get could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the get\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a put on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_register_put()\fP .RE .PP .SS "int globus_gass_transfer_register_append (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url, globus_size_t length, globus_gass_transfer_callback_t callback, void * user_arg)" Nonblocking file append\&. .PP This function initiates a new 'append' request of the file named by \fIurl\fP\&. The entire file will be transferred to the server if the user is authorized to do so\&. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file may be stored or not\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIappend\fP request's state\&. .PP If the server can't store the file at \fIurl\fP, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to append to\&. .br \fIlength\fP The length of the data to append to the url, if known\&. If this parameter is set to \fIGLOBUS_GASS_LENGTH_UNKNOWN\fP, then the append may fail if the protocol does not support arbitrarily-length files\&. .br \fIcallback\fP Function to call once the URL has been accepted, referred, or denied by the server\&. .br \fIuser_arg\fP User-supplied argument to the callback function\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The put was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request, attr, or callback was GLOBUS_NULL\&. The put could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the put\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a append on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_append()\fP .RE .PP .SS "int globus_gass_transfer_register_get (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url, globus_gass_transfer_callback_t callback, void * user_arg)" Nonblocking file get\&. .PP This function initiates a new 'get' request of the file named by \fIurl\fP\&. The entire file will be transferred from the server if the file exists and user is authorized to do so\&. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file can be retrieved or not\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIget\fP request's state\&. .PP If the server can't store the file at \fIurl\fP, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to get .br \fIcallback\fP Function to call once the URL has been accepted, referred, or denied by the server\&. .br \fIuser_arg\fP User-supplied argument to the callback function\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The get was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request, attr, or callback was GLOBUS_NULL\&. The get could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the get\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a get on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_get()\fP .RE .PP .SS "int globus_gass_transfer_register_put (\fBglobus_gass_transfer_request_t\fP * request, globus_gass_transfer_requestattr_t * attr, char * url, globus_size_t length, globus_gass_transfer_callback_t callback, void * user_arg)" Nonblocking file put\&. .PP This function initiates a new 'put' request of the file named by \fIurl\fP\&. The entire file will be transferred to the server if the user is authorized to do so\&. This function does not block; instead, the user's callback function will be called once the GASS library has determined whether the file may be stored or not\&. .PP Upon returning from this function, the request handle is initialized to refer to the \fIput\fP request's state\&. .PP If the server can't store the file at \fIurl\fP, but has an alternative location for the user to store to, then the callback function will be called with the request's status set to \fIGLOBUS_GASS_TRANSFER_REQUEST_REFERRED\fP\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP A pointer to an uninitialized request handle\&. .br \fIattr\fP Request attributes\&. .br \fIurl\fP URL to put\&. .br \fIlength\fP The length of the data to put to the url, if known\&. If this parameter is set to \fIGLOBUS_GASS_LENGTH_UNKNOWN\fP, then the put may fail if the protocol does not support arbitrarily-length files\&. .br \fIcallback\fP Function to call once the URL has been accepted, referred, or denied by the server\&. .br \fIuser_arg\fP User-supplied argument to the callback function\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The put was successfully initiated\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP One of request, attr, or callback was GLOBUS_NULL\&. The put could not be processed\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR\fP An internal resource was not available to process the put\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED\fP No protocol handler for doing a put on this URL type is implemented\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_BAD_URL\fP The URL could not be parsed\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_put()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for globus_gass_transfer from the source code\&.