globus_ftp_control_client(3) | globus_ftp_control | globus_ftp_control_client(3) |
globus_ftp_control_client - GridFTP Control Client
- Control Client.
globus_result_t globus_ftp_control_handle_init
(globus_ftp_control_handle_t *handle)
Initialize a globus ftp handle. globus_result_t
globus_ftp_control_handle_destroy (globus_ftp_control_handle_t
*handle)
Destroy a globus ftp handle. globus_result_t globus_ftp_control_connect
(globus_ftp_control_handle_t *handle, char *host, unsigned short port,
globus_ftp_control_response_callback_t callback, void *callback_arg)
Create a new control connection to an FTP server. globus_result_t
globus_ftp_control_response_destroy (globus_ftp_control_response_t
*response)
Free the memory associated with a response. globus_result_t
globus_ftp_control_response_copy (globus_ftp_control_response_t *src,
globus_ftp_control_response_t *dest)
Copy a response structure. globus_result_t
globus_ftp_control_authenticate (globus_ftp_control_handle_t *handle,
globus_ftp_control_auth_info_t *auth_info, globus_bool_t use_auth,
globus_ftp_control_response_callback_t callback, void *callback_arg)
Authenticate the user to the FTP server. globus_result_t
globus_ftp_control_authenticate_ex (globus_ftp_control_handle_t
*handle, globus_ftp_control_auth_info_t *auth_info, globus_bool_t
use_auth, globus_ftp_control_response_callback_t callback, void
*callback_arg)
Authenticate the user to the FTP server. globus_result_t
globus_ftp_control_send_command (globus_ftp_control_handle_t *handle,
const char *cmdspec, globus_ftp_control_response_callback_t callback,
void *callback_arg,...)
Send an FTP protocol command. globus_result_t globus_ftp_control_abort
(globus_ftp_control_handle_t *handle,
globus_ftp_control_response_callback_t callback, void *callback_arg)
Send a GridFTP ABORT. globus_result_t globus_ftp_control_quit
(globus_ftp_control_handle_t *handle,
globus_ftp_control_response_callback_t callback, void *callback_arg)
Send a GridFTP QUIT. globus_result_t globus_ftp_control_force_close
(globus_ftp_control_handle_t *handle,
globus_ftp_control_response_callback_t callback, void *callback_arg)
Force a control connection to close. globus_result_t
globus_ftp_control_auth_info_init
(globus_ftp_control_auth_info_t *auth_info, gss_cred_id_t
credential_handle, globus_bool_t encrypt, char *user, char *password, char
*account, char *subject)
Initialize authentication information. int
globus_ftp_control_auth_info_compare
(globus_ftp_control_auth_info_t *auth_info_1,
globus_ftp_control_auth_info_t *auth_info_2)
Compare authentication information. globus_result_t
globus_ftp_control_client_get_connection_info_ex
(globus_ftp_control_handle_t *handle, globus_ftp_control_host_port_t
*local_info, globus_ftp_control_host_port_t *remote_info)
Not documented yet. globus_result_t globus_ftp_control_ipv6_allow
(globus_ftp_control_handle_t *handle, globus_bool_t allow)
Not documented yet.
Control Client.
Send a GridFTP ABORT. This function is used to send the ABORT message to the FTP server. The ABORT message is sent out-of-band, and terminates any current data transfer in progress.
As a result of the ABORT, the data channels used by this control channel will be closed. The data command callback will be issued with either a completion reply, or a transfer aborted reply. The ABORT callback will also be invoked, with the server's response to the abort command.
Any attempts to register buffers for read or write after an ABORT has been sent will fail with a 'no transfer in progress' error.
Parameters
Returns
Callback errors:
Expected callback response values:
Note
Compare authentication information. This is helper function compares two authentication information structures and return zero if the two structures are deemed equal and a non-zero value otherwise.
Parameters
Returns
Initialize authentication information. This is helper function initializes a authentication information structure with the values contained in the second to fifth arguments, which may be GLOBUS_NULL. No memory is allocated in this function.
Parameters
Returns
Authenticate the user to the FTP server. This will perform the authentication handshake with the FTP server. Depending on which parameters are non-NULL, the authentication may involve GSSAPI credentials, a username, a password, and an account name.
Note
Parameters
use_auth If set to GLOBUS_TRUE the above argument indicates
that GSS authentication should be used, otherwise cleartext user/password
authentication is used.
callback The function to be called once the authentication process is
complete or when an error occurs.
callback_arg User supplied argument to the callback function
Returns
Callback errors:
Expected callback response values:
Note
The function globus_ftp_control_authenticate_ex() is identical except that the auth_info->req_flags is used. If delegation flags or any flags other than GSS_C_MUTUAL_FLAG and GSS_C_CONF_FLAG are desired, they must be set explicitly. It is the caller's responsibility to ensure that req_flags only contains valid flags.
Authenticate the user to the FTP server. This will perform the authentication handshake with the FTP server. Depending on which parameters are non-NULL, the authentication may involve GSSAPI credentials, a username, a password, and an account name.
Note
Parameters
use_auth If set to GLOBUS_TRUE the above argument indicates
that GSS authentication should be used, otherwise cleartext user/password
authentication is used.
callback The function to be called once the authentication process is
complete or when an error occurs.
callback_arg User supplied argument to the callback function
Returns
Callback errors:
Expected callback response values:
Note
The function globus_ftp_control_authenticate_ex() is identical except that the auth_info->req_flags is used. If delegation flags or any flags other than GSS_C_MUTUAL_FLAG and GSS_C_CONF_FLAG are desired, they must be set explicitly. It is the caller's responsibility to ensure that req_flags only contains valid flags.
Create a new control connection to an FTP server. This function is used to initiate an FTP control connection. It creates the socket to the FTP server. When the connection is made to the server, and the server's identification string is received, the callback function will be invoked.
Parameters
Returns
Callback errors:
Expected callback response values:
Note
Force a control connection to close. Force a close of the control connection without waiting for outstanding commands to complete and without sending QUIT.
This function is used to close the control channel to the FTP server. Once the final response callback passed to this function is invoked, the control handle can no longer be used for any GridFTP control operations.
Note
Parameters
Returns
Callback errors:
Expected callback response values:
Destroy a globus ftp handle. This function will free up all
dynamically allocated memory associated with a given globus ftp handle. It
will also remove the handle from a list used by the module
activation/deactivation functions. This function should only be called after
a call to either globus_ftp_control_force_close or globus_ftp_control_quit.
Parameters
Returns
Initialize a globus ftp handle. This function will set up (i.e. initialize all mutexes and variables) a globus ftp handle. It will also enter the handle in a list used by the module activation/deactivation functions.
Parameters
Returns
Send a GridFTP QUIT. This function is used to close the control channel to the FTP server. There should be no transfer commands in progress when this is called. Once the final response callback passed to this function is invoked, the control handle can no longer be used for any GridFTP control operations.
Note
Since this function waits until all other callbacks are completed before calling it's own callback it may not be called in a blocking fashion from another callback.
Parameters
Returns
Callback errors:
Expected callback response values:
Note
Copy a response structure. This is a helper function which copies one response structure to another.
Parameters
Returns
Free the memory associated with a response. This is a helper function which frees the memory associated with a response structure.
Parameters
Returns
Send an FTP protocol command. This function is used to send an FTP command, and register a handler to receive the FTP reply (or replies, if an intermediate one is sent). When the control channel is gss authenticated, the message and the reply will be automatically gss wrapped/unwrapped.
Parameters
Returns
Callback errors:
Expected callback response values:
Generated automatically by Doxygen for globus_ftp_control from the source code.
Tue Jul 5 2022 | Version 9.10 |