.TH "globus_gass_transfer_protocol" 3 "Tue Jul 5 2022" "Version 9.4" "globus_gass_transfer" \" -*- nroff -*- .ad l .nh .SH NAME globus_gass_transfer_protocol \- Protocol Modules .PP \- Protocol Implementation API\&. .SH SYNOPSIS .br .PP .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBglobus_gass_transfer_request_proto_s\fP" .br .RI "Protocol module request handling structure\&. " .ti -1c .RI "struct \fBglobus_gass_transfer_listener_proto_s\fP" .br .RI "Protocol module listener handling structure\&. " .ti -1c .RI "struct \fBglobus_gass_transfer_proto_descriptor_t\fP" .br .RI "Protocol module descriptor structure\&. " .in -1c .SS "Typedefs" .in +1c .ti -1c .RI "typedef struct \fBglobus_gass_transfer_request_proto_s\fP \fBglobus_gass_transfer_request_proto_t\fP" .br .ti -1c .RI "typedef struct \fBglobus_gass_transfer_listener_proto_s\fP \fBglobus_gass_transfer_listener_proto_t\fP" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_send_t\fP) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t bytes_length, globus_bool_t last_data)" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_receive_t\fP) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t bytes_length, globus_size_t wait_for_length)" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_func_t\fP) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request)" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_new_request_t\fP) (\fBglobus_gass_transfer_request_t\fP request, globus_gass_transfer_requestattr_t *attr)" .br .ti -1c .RI "typedef int(* \fBglobus_gass_transfer_proto_create_listener_t\fP) (globus_gass_transfer_listener_t listener, globus_gass_transfer_listenerattr_t *attr, char *scheme, char **base_url, \fBglobus_gass_transfer_listener_proto_t\fP **proto)" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_listener_t\fP) (\fBglobus_gass_transfer_listener_proto_t\fP *proto, globus_gass_transfer_listener_t listener)" .br .ti -1c .RI "typedef globus_object_t *(* \fBglobus_gass_transfer_proto_new_attr_t\fP) (char *url_scheme)" .br .ti -1c .RI "typedef void(* \fBglobus_gass_transfer_proto_accept_t\fP) (\fBglobus_gass_transfer_listener_proto_t\fP *proto, globus_gass_transfer_listener_t listener, \fBglobus_gass_transfer_request_t\fP request, globus_gass_transfer_requestattr_t *attr)" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "void \fBglobus_gass_transfer_proto_send_complete\fP (\fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_receive_complete\fP (\fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_listener_ready\fP (globus_gass_transfer_listener_t listener)" .br .ti -1c .RI "int \fBglobus_gass_transfer_proto_register_protocol\fP (\fBglobus_gass_transfer_proto_descriptor_t\fP *proto_desc)" .br .ti -1c .RI "int \fBglobus_gass_transfer_proto_unregister_protocol\fP (\fBglobus_gass_transfer_proto_descriptor_t\fP *proto_desc)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_request_ready\fP (\fBglobus_gass_transfer_request_t\fP request, \fBglobus_gass_transfer_request_proto_t\fP *proto)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_new_listener_request\fP (globus_gass_transfer_listener_t listener, \fBglobus_gass_transfer_request_t\fP request, \fBglobus_gass_transfer_request_proto_t\fP *proto)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_request_denied\fP (\fBglobus_gass_transfer_request_t\fP request, int reason, char *message)" .br .ti -1c .RI "void \fBglobus_gass_transfer_proto_request_referred\fP (\fBglobus_gass_transfer_request_t\fP request, char **url, globus_size_t num_urls)" .br .in -1c .SH "Detailed Description" .PP Protocol Implementation API\&. Protocol Modules .PP The GASS Protocol Module API is designed to make it possible to extend the GASS client and server APIs to support additional protocols without making any changes to the core of the GASS implementation\&. GASS protocol modules are intended to to handle protocol-specific connection and data handling\&. The GASS Transfer library includes protocol modules which implement the HTTP, HTTPS, FTP, and GSI-FTP protocols\&. .PP Every protocol module implementation must include the following header file: .PP .nf #include "globus_gass_transfer_proto\&.h" .fi .PP .PP To implement a protocol module, one must create a \fBglobus_gass_transfer_proto_descriptor_t\fP structure which indicates what the protocol module is able to do\&. This structure contains the URL scheme which the protocol module supports, and function pointers which indicate what type of operations (client or server) that the module implements\&. To implement a client-side protocol module, the new_requestattr and new_request fields must be set to the protocol module's implementations of those functions\&. To implement a server-side protocol module, the new_listenerattr and new_listener functions must be set to the protocol module's implementations of those functions\&. .PP A protocol module implementor registers a protocol module with the GASS Transfer library by calling the function \fBglobus_gass_transfer_proto_register_protocol()\fP, and unregisters the module by calling \fBglobus_gass_transfer_proto_unregister_protocol()\fP\&. This functions must be called after the \fBGLOBUS_GASS_TRANSFER_MODULE\fP has already been activated\&. Once registered, applications may use URLs of the scheme type provided by the protocol module for the standard \fBclient\fP or \fBserver\fP operations\&. .SH "Typedef Documentation" .PP .SS "typedef struct \fBglobus_gass_transfer_listener_proto_s\fP \fBglobus_gass_transfer_listener_proto_t\fP" Protocol module listener handling structure\&. .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_listener_proto_s\fP .RE .PP .SS "typedef void(* globus_gass_transfer_proto_accept_t) (\fBglobus_gass_transfer_listener_proto_t\fP *proto, globus_gass_transfer_listener_t listener, \fBglobus_gass_transfer_request_t\fP request, globus_gass_transfer_requestattr_t *attr)" Protocol module implementation function type for server request parsing\&. .PP Function pointers of this type are associated with the \fBglobus_gass_transfer_listener_proto_t\fP associated with a particular listener handle\&. They are called when a server implementation wants to accept a new connection from the listener\&. A new request is generated based on the protocol-specific request done on the new connection\&. .PP The new request will be created with the attributes specified in the \fIattr\fP parameter\&. Once the protocol module has parsed the request, it must call \fBglobus_gass_transfer_proto_new_listener_request()\fP to let the server implementation decide how to process this request\&. .PP The protocol module should update the \fIrequest\fP to indicate the type of operation being requested, the size of the file (if applicable), and the identity of the client (if applicable)\&. .PP \fBParameters\fP .RS 4 \fIproto\fP The protocol specific listener data structure associated with the listener handle\&. .br \fIlistener\fP The listener handle which the user requested the listen on\&. .br \fIrequest\fP The new request handle\&. .br \fIattr\fP The request attribute set to be used when processing this request\&. .RE .PP .SS "typedef int(* globus_gass_transfer_proto_create_listener_t) (globus_gass_transfer_listener_t listener, globus_gass_transfer_listenerattr_t *attr, char *scheme, char **base_url, \fBglobus_gass_transfer_listener_proto_t\fP **proto)" Protocol module implementation function type for new server listeners\&. .PP A function pointer of this type is associated with the \fBglobus_gass_transfer_proto_descriptor_t\fP for a particular protocol module's implementation\&. It is called when the server has called \fBglobus_gass_transfer_create_listener()\fP\&. .PP \fBParameters\fP .RS 4 \fIlistener\fP The listener handle to associate with the new \fIproto\fP created by the protocol module\&. .br \fIattr\fP A protocol-specific attribute set, created by calling the protocol module's \fBnew_listenerattr function pointer\fP\&. .br \fIscheme\fP The URL scheme that the server has requested for the new listener\&. This will be one the scheme associated with a particular protocol module\&. .br \fIbase_url\fP A pointer to be set the value of the base url of this listener\&. For most protocols, this will contain the scheme, hostname, and port number of the listener\&. This string must be allocated using one of the memory allocators defined in the globus_common library\&. It will be freed by the GASS Transfer library when the listener is closed\&. .br \fIproto\fP A pointer to be set to a new globus_gass_transfer_listener_proto_t which will be associated with this listener\&. This must be allocated by the protocol module using one of the memory allocators defined in the globus_common library\&. It will be freed by the GASS Transfer library when the listener is closed\&. .RE .PP \fBReturns\fP .RS 4 A GASS error value, or GLOBUS_SUCCESS\&. .RE .PP .SS "typedef void(* globus_gass_transfer_proto_func_t) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request)" Protocol module implementation function type\&. .PP Function pointers of this type are associated with the \fBglobus_gass_transfer_request_proto_t\fP associated with a particular request handle\&. They are called when certain functions which modify the status of a request have been called by a client or server\&. .PP A function of this type is used for the fail, deny, refer, authorize, and destroy fields of the \fBglobus_gass_transfer_request_proto_t\fP\&. A protocol module can query the request handle to determine the status and, if applicable, denial reasons if necessary\&. .PP \fBParameters\fP .RS 4 \fIproto\fP The protocol module's request handler\&. .br \fIrequest\fP The request handle\&. .RE .PP .SS "typedef void(* globus_gass_transfer_proto_listener_t) (\fBglobus_gass_transfer_listener_proto_t\fP *proto, globus_gass_transfer_listener_t listener)" Protocol module implementation function type for server operations\&. .PP Function pointers of this type are associated with the \fBglobus_gass_transfer_listener_proto_t\fP associated with a particular listener handle\&. They are called when a server implementation wants to close the listener, listen for new connections, or destroy the listener\&. .PP \fBParameters\fP .RS 4 \fIproto\fP The protocol-specific implementation of the \fBglobus_gass_transfer_listener_proto_t\fP for a particular listener\&. .br \fIlistener\fP The listener handle associated with the \fIproto\fP\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_proto_create_listener_t\fP .RE .PP .SS "typedef globus_object_t*(* globus_gass_transfer_proto_new_attr_t) (char *url_scheme)" Protocol module implementation function type for attribute creation\&. .PP A function pointer of this type is associated with the \fBglobus_gass_transfer_proto_descriptor_t\fP defining a protocol module\&. It is called when a client requests a new request attribute set be created for a URL scheme handled by a protocol module\&. The function implementation must create a new request attribute usable by the protocol\&. .PP The returned attribute must be a globus object which inherits from one of the base attributes defined in the GASS Transfer API\&. A client or server operation will use a request attribute generated by this function when creating a new \fBglobus_gass_transfer_request_proto_t\fP to handle a request\&. .PP \fBParameters\fP .RS 4 \fIurl_scheme\fP The URL scheme that the request attribute should be compatible with\&. .RE .PP \fBReturns\fP .RS 4 A globus_object_t-based request attribute\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_proto_new_request_t\fP, \fBglobus_gass_transfer_proto_accept_t\fP .RE .PP .SS "typedef void(* globus_gass_transfer_proto_new_request_t) (\fBglobus_gass_transfer_request_t\fP request, globus_gass_transfer_requestattr_t *attr)" Protocol module implementation function type for new client requests\&. .PP A function pointer of this type is associated with the \fBglobus_gass_transfer_proto_descriptor_t\fP for a particular protocol module's implementation\&. It is called when the client has begun a file transfer request by calling one of the functions in the '@ref globus_gass_transfer_client' section of this manual\&. .PP When this function is called for a protocol module, the module should query the request handle to determine the URL which is being requested by the client, and the operation being done on that URL\&. The protocol module should initiate the request, and once it has determined that it has been authorized, denied, or referred, one of \fBglobus_gass_transfer_proto_request_ready()\fP, \fBglobus_gass_transfer_proto_request_denied()\fP, or \fBglobus_gass_transfer_proto_request_referred()\fP must be called\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle containing the information about the request\&. .br \fIattr\fP A protocol-specific attribute set, created by calling the protocol module's \fBnew_requestattr function pointer\fP\&. .RE .PP .SS "typedef void(* globus_gass_transfer_proto_receive_t) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t bytes_length, globus_size_t wait_for_length)" Protocol module function type to handle receiving data\&. .PP A function pointer of this type is associated with the \fBglobus_gass_transfer_request_proto_t\fP associated with a request handle\&. It is called when client or server has registered a bytes array for receiving from the client or server which is handling the request\&. The GASS Transfer Library will only pass one \fIbytes\fP array to the protocol module for processing per request at any given time\&. .PP Once the protocol module has processed the array, it must call \fBglobus_gass_transfer_proto_receive_complete()\fP to let the GASS Transfer library continue to process the request\&. .PP \fBParameters\fP .RS 4 \fIproto\fP The protocol module's request handler\&. .br \fIrequest\fP The request handle with which this block of bytes is associated\&. .br \fIbytes\fP The user-supplied byte array containing the data associated with the request\&. .br \fIbytes_length\fP The length of the \fIbytes\fP array\&. .br \fIwait_for_length\fP The minimum amount of data to receive before calling \fBglobus_gass_transfer_proto_receive_complete()\fP for the request\&. The GASS Transfer protocol module may call that function with a smaller value for the amount received if EOF has been reached\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_receive_bytes()\fP .RE .PP .SS "typedef void(* globus_gass_transfer_proto_send_t) (\fBglobus_gass_transfer_request_proto_t\fP *proto, \fBglobus_gass_transfer_request_t\fP request, globus_byte_t *bytes, globus_size_t bytes_length, globus_bool_t last_data)" Protocol module function type to handle sending data\&. .PP A function pointer of this type is associated with the \fBglobus_gass_transfer_request_proto_t\fP associated with a request handle\&. It is called when client or server has registered a bytes array for sending to the client or server which is handling the request\&. The GASS Transfer Library will only pass one \fIbytes\fP array to the protocol module for processing per request at any given time\&. .PP Once the protocol module has processed the array, it must call \fBglobus_gass_transfer_proto_send_complete()\fP to let the GASS Transfer library continue to process the request\&. .PP \fBParameters\fP .RS 4 \fIproto\fP The protocol module's request handler\&. .br \fIrequest\fP The request handle with which this block of bytes is associated\&. .br \fIbytes\fP The user-supplied byte array containing the data associated with the request\&. .br \fIbytes_length\fP The length of the \fIbytes\fP array\&. .br \fIlast_data\fP A flag to indicate whether this is the final block of data for the request\&. If this is true, then the \fIcallback\fP function will be delayed until the server acknowledges that the file has been completely received\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_send_bytes()\fP .RE .PP .SS "typedef struct \fBglobus_gass_transfer_request_proto_s\fP \fBglobus_gass_transfer_request_proto_t\fP" Protocol module request handling structure\&. .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_request_proto_s\fP .RE .PP .SH "Function Documentation" .PP .SS "void globus_gass_transfer_proto_listener_ready (globus_gass_transfer_listener_t listener)" Server listener ready\&. .PP This function notifies the GASS Transfer Library that the protocol module has decided that a new request can be accepted on this particular listener\&. It must only be called after the GASS Transfer Library has called the \fBlisten function\fP in a \fBglobus_gass_transfer_listener_proto_t\fP protocol module-specific listener structure\&. .PP \fBParameters\fP .RS 4 \fIlistener\fP The listener handle which is now ready for accepting a new connection\&. .RE .PP .SS "void globus_gass_transfer_proto_new_listener_request (globus_gass_transfer_listener_t listener, \fBglobus_gass_transfer_request_t\fP request, \fBglobus_gass_transfer_request_proto_t\fP * proto)" New listener request\&. .PP This function notifies the GASS Transfer Library that new request generated by a server calling the \fBglobus_gass_transfer_register_accept()\fP function has begun processing in a protocol module, and that protocol module is now ready to send or receive data to handle this request\&. .PP \fBParameters\fP .RS 4 \fIlistener\fP The listener handle used to accept this request\&. .br \fIrequest\fP The request handle used for this request\&. This was created by the user calling one of the functions in the '@ref globus_gass_transfer_client' section of this manual\&. .br \fIproto\fP The protocol-module specific request structure\&. This structure contains a set of function pointers to allow GASS to continue to process this request\&. .RE .PP .SS "void globus_gass_transfer_proto_receive_complete (\fBglobus_gass_transfer_request_t\fP request, globus_byte_t * bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)" Data receive complete\&. .PP A protocol module must call this function once a byte range registered for receive via the protocol module's recv_buffer method has been completely processed\&. This function is called for protocol modules implementing either server or client functionality\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle associated with this byte array\&. .br \fIbytes\fP The byte array which was received into\&. This should be the same as the pointer passed in the send_buffer method\&. .br \fInbytes\fP The number of bytes which were sent from this byte array\&. This may be different than length passed to the send_buffer method if an error occurred or EOF was reached while receiving the data\&. .br \fIfailed\fP A boolean indicating whether this byte range was successfully received or not\&. This should be set to \fIGLOBUS_TRUE\fP if either a protocol error or a user-generated abort has occurred while processing the byte range\&. If this is set to \fIGLOBUS_TRUE\fP, then the \fIlast_data\fP parameter must also be set to \fIGLOBUS_TRUE\fP\&. .br \fIlast_data\fP A boolean indicating whether this byte range was the final one which can be processed for this request\&. This should be set to \fIGLOBUS_TRUE\fP if an error occurred while processing this byte range, and user-generated abort occurred, or this is the final byte range in the data transfer\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_send_bytes()\fP .RE .PP .SS "int globus_gass_transfer_proto_register_protocol (\fBglobus_gass_transfer_proto_descriptor_t\fP * proto_desc)" Register protocol\&. .PP This function registers a protocol module handler with the GASS Transfer library\&. If this succeeds, then users of the library may use the URLs with the protocol scheme implemented by this module descriptor in GASS Transfer operations\&. .PP \fBParameters\fP .RS 4 \fIproto_desc\fP The protocol module descriptor\&. See the '@ref globus_gass_transfer_protocol' section of the manual for information on this structure\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The protocol module was successfully registered with GASS\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP The \fIproto_desc\fP parameter was \fIGLOBUS_NULL\fP\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_ALREADY_REGISTERED\fP A protocol module has already been registered with GASS to handle this URL scheme\&. .RE .PP .SS "void globus_gass_transfer_proto_request_denied (\fBglobus_gass_transfer_request_t\fP request, int reason, char * message)" Request denied\&. .PP This function notifies the GASS Transfer Library that new request generated by a client calling one of the functions in the '@ref globus_gass_transfer_client' section of the manual has been denied by the server, and so cannot be processed by the protocol module\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle used for this request\&. This was created by the user calling one of the functions in the '@ref globus_gass_transfer_client' section of this manual\&. .br \fIreason\fP A protocol-specific reason code\&. .br \fImessage\fP A string containing a message describing why the request was denied\&. The GASS Transfer library is responsible for freeing this message\&. It must be allocated using one of the memory allocators defined in the Globus Common Library\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_proto_request_ready()\fP, \fBglobus_gass_transfer_proto_request_referred()\fP .RE .PP .SS "void globus_gass_transfer_proto_request_ready (\fBglobus_gass_transfer_request_t\fP request, \fBglobus_gass_transfer_request_proto_t\fP * proto)" Request ready\&. .PP This function notifies the GASS Transfer Library that new request generated by a client has begun processing in a protocol module, and that protocol module is now ready to send or receive data to handle this request\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle used for this request\&. This was created by the user calling one of the functions in the '@ref globus_gass_transfer_client' section of this manual\&. .br \fIproto\fP The protocol-module specific request structure\&. This structure contains a set of function pointers to allow GASS to continue to process this request\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_proto_request_referred()\fP, \fBglobus_gass_transfer_proto_request_denied()\fP .RE .PP .SS "void globus_gass_transfer_proto_request_referred (\fBglobus_gass_transfer_request_t\fP request, char ** url, globus_size_t num_urls)" Request referred\&. .PP This function notifies the GASS Transfer Library that new request generated by a client calling one of the functions in the '@ref globus_gass_transfer_client' section of the manual has been referred to another URL by the server, and so processing has stopped\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle used for this request\&. This was created by the user calling one of the functions in the '@ref globus_gass_transfer_client' section of this manual\&. .br \fIurl\fP An array of url strings containing alternate locations for this file\&. The GASS transfer library is responsible for freeing this array\&. It must be allocated using one of the memory allocators defined in the Globus Common Library\&. .br \fInum_urls\fP The length of the \fIurl\fP array\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_proto_request_ready()\fP, \fBglobus_gass_transfer_proto_request_denied()\fP, \fBglobus_gass_transfer_proto_request_referred()\fP .RE .PP .SS "void globus_gass_transfer_proto_send_complete (\fBglobus_gass_transfer_request_t\fP request, globus_byte_t * bytes, globus_size_t nbytes, globus_bool_t failed, globus_bool_t last_data)" Data send complete\&. .PP A protocol module must call this function once a byte range registered for sending via the protocol module's send_buffer method has been completely processed\&. This function is called for protocol modules implementing either server or client functionality\&. .PP \fBParameters\fP .RS 4 \fIrequest\fP The request handle associated with this byte array\&. .br \fIbytes\fP The byte array which was sent\&. This should be the same as the pointer passed in the send_buffer method\&. .br \fInbytes\fP The number of bytes which were sent from this byte array\&. This may be different than length passed to the send_buffer method if an error occurred\&. .br \fIfailed\fP A boolean indicating whether this byte range was successfully sent or not\&. This should be set to \fIGLOBUS_TRUE\fP if either a protocol error or a user-generated abort has occurred while processing the byte range\&. If this is set to \fIGLOBUS_TRUE\fP, then the \fIlast_data\fP parameter must also be set to \fIGLOBUS_TRUE\fP\&. .br \fIlast_data\fP A boolean indicating whether this byte range was the final one which can be processed for this request\&. This should be set to \fIGLOBUS_TRUE\fP if an error occurred while processing this byte range, and user-generated abort occurred, or this is the final byte range in the data transfer\&. .RE .PP \fBSee also\fP .RS 4 \fBglobus_gass_transfer_send_bytes()\fP .RE .PP .SS "int globus_gass_transfer_proto_unregister_protocol (\fBglobus_gass_transfer_proto_descriptor_t\fP * proto_desc)" Unregister protocol\&. .PP This function unregisters a protocol module handler from the GASS Transfer library\&. If this succeeds, then users of the library may no longer user URLs with the protocol scheme implemented by this module descriptor in GASS Transfer operations\&. .PP \fBParameters\fP .RS 4 \fIproto_desc\fP The protocol module descriptor\&. See the '@ref globus_gass_transfer_protocol' section of the manual for information on this structure\&. .RE .PP \fBReturn values\fP .RS 4 \fIGLOBUS_SUCCESS\fP The protocol module was successfully registered with GASS\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_NULL_POINTER\fP The \fIproto_desc\fP parameter was \fIGLOBUS_NULL\fP\&. .br \fIGLOBUS_GASS_TRANSFER_ERROR_INVALID_USE\fP A protocol module has not been registered with GASS to handle this URL scheme\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for globus_gass_transfer from the source code\&.