Functions for remote data management, mostly using GridFTP.
Version: 1.0
Public calls: growl_gridFTP
Public modules: libgrowl.a
Other modules required: gSOAP v2.1.4
Date: 2005
Origin: Hand-Knitted Software, R.J. Allan, CCLRC Daresbury Laboratory
Language: C
Conditions on external use: Standard, see separate chapter
This module is used by including growl.h and linking to the library libgrowl.a. Publically callable procedures are listed here.
[frame=single]
int growl_gridFTP(char *sessionId,
char *source,
char *sname,
char *target,
char *tname,
char **response);
char *sessionId
On entry: unique session key as returned from growl_getDelegation. See Chapter
.
char *source
On entry: fully qualified dns name of the computer which is the source of data.
char *sname
On entry: full path to source data file
char *target
On entry: fully qualified dns name of the target computer.
char *tname
On entry: full path to target data file to be over-written or created
char **response)
On exit: information from FTP server
Integer, 0=success, !0=failure.
SOAP error message if there is a problem.
Workspace: internal workspace is allocated in all these
routines by the gSOAP system for the long return string. This should
be freed by the user when it is no longer required.
Use of globals: none
Other routines called directly: none
Input/ output: none
Restrictions:
Notes:
This module is based on GridFTP and is intended for 3rd party data transfer. It relies upon the fact that multiple firewall ports for control and data can be open between the source and target hosts. This is unlikely to work to a desktop machine and error notification should be clear if transfer cannot take place for this reason.
Put the example code here. Should also be provided as part of the distribution.
[frame=single] Part of code listing
Input data
Output data