Man page - globus_gass_transfer_data(3)
Packages contains this manual
- globus_gass_transfer_proto_accept_t(3)
- globus_gass_transfer_proto_descriptor_t(3)
- globus_gass_transfer_requestattr_set_proxy_url(3)
- globus_gass_transfer_listener_set_user_pointer(3)
- globus_gass_transfer_client(3)
- globus_gass_transfer_request_get_length(3)
- globus_gass_transfer_requestattr(3)
- globus_gass_transfer_request_proto_s(3)
- globus_gass_transfer_create_listener(3)
- globus_gass_transfer_register_listen(3)
- globus_gass_transfer_listenerattr_set_backlog(3)
- globus_gass_transfer_register_get(3)
- globus_gass_transfer_referral_get_url(3)
- globus_gass_transfer_deny(3)
- globus_gass_transfer_request_get_url(3)
- globus_gass_transfer_proto_create_listener_t(3)
- globus_gass_transfer_request_get_status(3)
- globus_gass_transfer_requestattr_implementation(3)
- globus_gass_transfer_register_append(3)
- globus_gass_transfer_request_set_url(3)
- globus_gass_transfer_listener_proto_t(3)
- globus_gass_transfer_activation(3)
- globus_gass_transfer_request_status_t(3)
- globus_gass_transfer_proto_request_ready(3)
- globus_gass_transfer_proto_unregister_protocol(3)
- globus_gass_transfer_requestattr_set_connection_reuse(3)
- globus_gass_transfer_request_t(3)
- globus_gass_transfer_requestattr_set_socket_nodelay(3)
- globus_gass_transfer_request_get_type(3)
- globus_gass_transfer_listenerattr_set_port(3)
- globus_gass_transfer_request_get_denial_reason(3)
- globus_gass_transfer_referral_destroy(3)
- globus_gass_transfer_requestattr_destroy(3)
- globus_gass_transfer_request_set_user_pointer(3)
- globus_gass_transfer_socket_requestattr_initialize(3)
- globus_gass_transfer_proto_request_denied(3)
- globus_gass_transfer_proto_send_t(3)
- globus_gass_transfer.h(3)
- globus_gass_transfer_close_callback_t(3)
- globus_gass_transfer_proto_receive_t(3)
- globus_gass_transfer_register_put(3)
- globus_gass_transfer_get(3)
- globus_gass_transfer_proto_send_complete(3)
- globus_gass_transfer_listener_get_base_url(3)
- globus_gass_transfer_requestattr_set_socket_rcvbuf(3)
- globus_gass_transfer_register_accept(3)
- globus_gass_transfer_listenerattr_initialize(3)
- globus_gass_transfer_request_set_type(3)
- globus_gass_transfer_listenerattr_init(3)
- globus_gass_transfer_bytes_callback_t(3)
- globus_gass_transfer_proto_register_protocol(3)
- globus_gass_transfer_send_bytes(3)
- globus_gass_transfer_requestattr_set_block_size(3)
- globus_gass_transfer_authorize(3)
- globus_gass_transfer_request_get_user_pointer(3)
- globus_gass_transfer_proto_receive_complete(3)
- globus_gass_transfer_receive_bytes(3)
- globus_gass_transfer_append(3)
- globus_gass_transfer_proto_new_listener_request(3)
- globus_gass_transfer_protocol(3)
- globus_gass_transfer_close_listener(3)
- globus_gass_transfer_data(3)
- globus_gass_transfer_secure_requestattr_set_authorization(3)
- globus_gass_transfer_requestattr_set_file_mode(3)
- globus_gass_transfer_request_type_t(3)
- globus_gass_transfer_proto_listener_ready(3)
- globus_gass_transfer_request_destroy(3)
- globus_gass_transfer_request_get_denial_message(3)
- globus_gass_transfer_proto_new_request_t(3)
- globus_gass_transfer_proto_request_referred(3)
- globus_gass_transfer_server(3)
- globus_gass_transfer_put(3)
- globus_gass_transfer_requestattr_initialize(3)
- globus_gass_transfer_requestattr_set_socket_sndbuf(3)
- globus_gass_transfer_request_set_length(3)
- globus_gass_transfer_listener_proto_s(3)
- globus_gass_transfer_request_get_subject(3)
- globus_gass_transfer_request(3)
- globus_gass_transfer_secure_requestattr_initialize(3)
- globus_gass_transfer_proto_func_t(3)
- globus_gass_transfer_listen_callback_t(3)
- globus_gass_transfer_request_proto_t(3)
- globus_gass_transfer_refer(3)
- globus_gass_transfer(3)
- globus_gass_transfer_request_get_referral(3)
- globus_gass_transfer_proto.h(3)
- globus_gass_transfer_requestattr_init(3)
- globus_gass_transfer_proto_new_attr_t(3)
- globus_gass_transfer_referral_get_count(3)
- globus_gass_transfer_referral(3)
- globus_gass_transfer_listenerattr(3)
- globus_gass_transfer_listener_get_user_pointer(3)
- globus_gass_transfer_proto_listener_t(3)
apt-get install libglobus-gass-transfer-doc
Manual
globus_gass_transfer_data
NAMESYNOPSIS
Typedefs
Functions
Detailed Description
Typedef Documentation
typedef void(* globus_gass_transfer_bytes_callback_t) (void *arg,globus_gass_transfer_request_t request, globus_byte_t *bytes,globus_size_t length, globus_bool_t last_data)
Function Documentation
int globus_gass_transfer_receive_bytes (globus_gass_transfer_request_trequest, globus_byte_t * bytes, globus_size_t max_length, globus_size_twait_for_length, globus_gass_transfer_bytes_callback_t callback, void *user_arg)
int globus_gass_transfer_send_bytes (globus_gass_transfer_request_trequest, globus_byte_t * bytes, globus_size_t send_length,globus_bool_t last_data, globus_gass_transfer_bytes_callback_tcallback, void * user_arg)
Author
NAME
globus_gass_transfer_data - Sending and Receiving Data
- Sending and Receiving Data.
SYNOPSIS
Typedefs
typedef void(* globus_gass_transfer_bytes_callback_t ) (void *arg, globus_gass_transfer_request_t request, globus_byte_t *bytes, globus_size_t length, globus_bool_t last_data)
Functions
int
globus_gass_transfer_send_bytes
(
globus_gass_transfer_request_t
request,
globus_byte_t *bytes, globus_size_t send_length,
globus_bool_t last_data,
globus_gass_transfer_bytes_callback_t
callback, void
*user_arg)
int
globus_gass_transfer_receive_bytes
(
globus_gass_transfer_request_t
request,
globus_byte_t *bytes, globus_size_t max_length,
globus_size_t wait_for_length,
globus_gass_transfer_bytes_callback_t
callback, void
*user_arg)
Detailed Description
Sending and Receiving Data.
Typedef Documentation
typedef void(* globus_gass_transfer_bytes_callback_t) (void *arg,globus_gass_transfer_request_t request, globus_byte_t *bytes,globus_size_t length, globus_bool_t last_data)
Byte send or receive callback function.
Parameters
arg
The user_arg passed
to the function which registered this callback. The user may
use this value for any purpose.
request
The request handle associated with this byte
array.
bytes
The byte array which was sent or received.
length
The length of data which was sent or received.
last_data
Boolean flag whether this is the final byte
array for this request.
See also
globus_gass_transfer_send_bytes() , globus_gass_transfer_receive_bytes()
Function Documentation
int globus_gass_transfer_receive_bytes (globus_gass_transfer_request_trequest, globus_byte_t * bytes, globus_size_t max_length, globus_size_twait_for_length, globus_gass_transfer_bytes_callback_t callback, void *user_arg)
Receive a byte array associated with a request handle.
This function receives a block of data from a server or client as part of the processing for a request. Multiple data blocks may be registered with the GASS transfer library at once.
When processing a server request, this function may only be used in conjunction with ’put’ or ’append’ requests. The user must call globus_gass_transfer_authorize() before calling this function.
When processing a client request, this function may only be used in conjunction with ’get’ requests. This function may not be called before either the callback function has been invoked, or the blocking globus_gass_tranfser_put() or globus_gass_transfer_append() function has returned.
Parameters
request
The request
handle with which this block of bytes is associated.
bytes
A user-supplied buffer containing the data
associated with the request.
max_length
The length of the
bytes
array.
wait_for_length
The minimum amount of data to wait for
before invoking the
callback
function. A partial byte
array of at least this amount will be returned in the
callback, unless end-of-file is reached before this amount.
callback
Function to call once the
bytes
array
has been received.
user_arg
Argument to be passed to the
callback
function.
Return values
GLOBUS_SUCCESS
The
bytes
array was successfully registered with the GASS
transfer library. The
callback
function will be
invoked once it has been received.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER
The
bytes
or
callback
parameter was NULL.
GLOBUS_GASS_TRANSFER_ERROR_INVALID_USER
The
request
was invalid, or it is not one on which bytes
can be sent.
GLOBUS_GASS_TRANSFER_ERROR_NOT_INITIALIZED
The callback
to a non-blocking file request has not been invoked yet, a
blocking file request has not returned, or the request has
not yet been authorized.
GLOBUS_GASS_TRANSFER_ERROR_REQUEST_FAILED
The
request
has failed by either the client, server, or
protocol module implementation.
GLOBUS_GASS_TRANSFER_ERROR_DONE
The
request
has
already been completed.
int globus_gass_transfer_send_bytes (globus_gass_transfer_request_trequest, globus_byte_t * bytes, globus_size_t send_length,globus_bool_t last_data, globus_gass_transfer_bytes_callback_tcallback, void * user_arg)
Send a byte array associated with a request handle.
This function sends a block of data to a server or client as part of the processing for a request. Multiple data blocks may be registered with the GASS transfer library at once.
When processing a server request, this function may only be used in conjunction with ’get’ requests. The user must call globus_gass_transfer_authorize() before calling this function.
When processing a client request, this function may only be used in conjunction with ’put’ or ’append’ requests. This function may not be called before either the callback function has been invoked, or the blocking globus_gass_tranfser_put() or globus_gass_transfer_append() function has returned.
Parameters
request
The request
handle with which this block of bytes is associated.
bytes
A user-supplied buffer containing the data
associated with the request.
send_length
The length of the
bytes
array.
last_data
A flag to indicate whether this is the final
block of data for the request. If this is true, then the
callback
function will be delayed until the server
acknowledges that the file has been completely received.
callback
Function to call once the
bytes
array
has been sent.
user_arg
Argument to be passed to the
callback
function.
Return values
GLOBUS_SUCCESS
The
bytes
array was successfully registered with the GASS
transfer library. The
callback
function will be
invoked once it has been sent.
GLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER
The
bytes
or
callback
parameter was NULL.
GLOBUS_GASS_TRANSFER_ERROR_INVALID_USER
The
request
was invalid, or it is not one on which bytes
can be sent.
GLOBUS_GASS_TRANSFER_ERROR_NOT_INITIALIZED
The callback
to a non-blocking file request has not been invoked yet, a
blocking file request has not returned, or the request has
not yet been authorized.
GLOBUS_GASS_TRANSFER_ERROR_REQUEST_FAILED
The
request
has failed by either the client, server, or
protocol module implementation.
GLOBUS_GASS_TRANSFER_ERROR_DONE
The
request
has
already been completed.
Author
Generated automatically by Doxygen for globus_gass_transfer from the source code.