Client-Initiated Operations
- Provided by: libglobus-gass-transfer-doc (Version: 7.2-4)
- Source: globus-gass-transfer
- Report a bug
GASS Transfer Client Operations.
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 protocol module interface allows support for additional protocols to be added easily.
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.
Nonblocking file get. This function initiates a new 'get' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the get request's state.
If the server can't store the file at url, 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 GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_request_destroy(), and GLOBUS_GASS_TRANSFER_REQUEST_TYPE_GET.
Blocking file get. This function initiates a new 'get' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the get request's state. This request handle must be destroyed after the user has finished processing the data associated with the callback.
If the file doesn't exist at url, but a referral does, then this function will return with the request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_register_get().
Nonblocking file put. This function initiates a new 'put' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the put request's state.
If the server can't store the file at url, 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 GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_request_destroy(), globus_gass_transfer_request_set_length(), and GLOBUS_GASS_TRANSFER_REQUEST_TYPE_PUT.
Blocking file put. This function initiates a new 'put' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the put request's state.
If the server can't store the file at url, but has an alternative location for the user to store to, then this function return with request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_register_put().
Nonblocking file append. This function initiates a new 'append' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the append request's state.
If the server can't store the file at url, 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 GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_request_destroy(), globus_gass_transfer_request_set_length(), and GLOBUS_GASS_TRANSFER_REQUEST_TYPE_APPEND.
Blocking file append. This function initiates a new 'append' request of the file named by url. The entire file will be transfered 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.
Upon returning from this function, the request handle is initialized to refer to the append request's state.
If the server can't store the file at url, but has an alternative location for the user to store to, then this function return with request's status set to GLOBUS_GASS_TRANSFER_REQUEST_REFERRED.
Parameters:
Return values:
See Also:
References globus_gass_transfer_register_append().
Generated automatically by Doxygen for globus gass transfer from the source code.