intglobus_gass_transfer_append(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url,globus_size_tlength)
Blocking file append.
This function initiates a new 'append' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to append to.
length The length of the data to append to the url, if known. If this parameter is set to
GLOBUS_GASS_LENGTH_UNKNOWN, then the append may fail if the protocol does not support arbitrarily-
length files.
ReturnvaluesGLOBUS_SUCCESS The put was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put
could not be processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a append on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_register_append()intglobus_gass_transfer_get(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url)
Blocking file get.
This function initiates a new 'get' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to get
ReturnvaluesGLOBUS_SUCCESS The get was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request or attr was GLOBUS_NULL. The get could not be
processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a get on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_register_get()intglobus_gass_transfer_put(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url,globus_size_tlength)
Blocking file put.
This function initiates a new 'put' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to put.
length The length of the data to put to the url, if known. If this parameter is set to
GLOBUS_GASS_LENGTH_UNKNOWN, then the put may fail if the protocol does not support arbitrarily-length
files.
ReturnvaluesGLOBUS_SUCCESS The get was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request or attr was GLOBUS_NULL. The get could not be
processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a put on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_register_put()intglobus_gass_transfer_register_append(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url,globus_size_tlength,globus_gass_transfer_callback_tcallback,void*user_arg)
Nonblocking file append.
This function initiates a new 'append' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to append to.
length The length of the data to append to the url, if known. If this parameter is set to
GLOBUS_GASS_LENGTH_UNKNOWN, then the append may fail if the protocol does not support arbitrarily-
length files.
callback Function to call once the URL has been accepted, referred, or denied by the server.
user_arg User-supplied argument to the callback function.
ReturnvaluesGLOBUS_SUCCESS The put was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put
could not be processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a append on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_append()intglobus_gass_transfer_register_get(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url,globus_gass_transfer_callback_tcallback,void*user_arg)
Nonblocking file get.
This function initiates a new 'get' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to get
callback Function to call once the URL has been accepted, referred, or denied by the server.
user_arg User-supplied argument to the callback function.
ReturnvaluesGLOBUS_SUCCESS The get was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The get
could not be processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the get.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a get on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_get()intglobus_gass_transfer_register_put(globus_gass_transfer_request_t*request,globus_gass_transfer_requestattr_t*attr,char*url,globus_size_tlength,globus_gass_transfer_callback_tcallback,void*user_arg)
Nonblocking file put.
This function initiates a new 'put' request of the file named by url. 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.
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.
Parametersrequest A pointer to an uninitialized request handle.
attr Request attributes.
url URL to put.
length The length of the data to put to the url, if known. If this parameter is set to
GLOBUS_GASS_LENGTH_UNKNOWN, then the put may fail if the protocol does not support arbitrarily-length
files.
callback Function to call once the URL has been accepted, referred, or denied by the server.
user_arg User-supplied argument to the callback function.
ReturnvaluesGLOBUS_SUCCESS The put was successfully initiated.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER One of request, attr, or callback was GLOBUS_NULL. The put
could not be processed.
GLOBUS_GASS_TRANSFER_ERROR_INTERNAL_ERROR An internal resource was not available to process the put.
GLOBUS_GASS_TRANSFER_ERROR_NOT_IMPLEMENTED No protocol handler for doing a put on this URL type is
implemented.
GLOBUS_GASS_TRANSFER_ERROR_BAD_URL The URL could not be parsed.
Seealsoglobus_gass_transfer_put()