main.c File Reference

Globus ftp demo driver. More...

#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "globus_common.h"
#include "globus_ftp_client.h"
#include "ftp_demo.h"

Functions

int main (int argc, char **argv)
 Application entry point and main loop. More...


Detailed Description

Globus ftp demo driver.


Function Documentation

int main ( int argc,
char ** argv )
 

Application entry point and main loop.

The demo application reads a configuration file, and then runs until all file transfers described in it are completed. The configuration file contains an RSL multirequest, as described in the Configuration File documentation.

On each iteration through the main loop, the state file is updated, so that in the case of abnormal application termination, the transfer set can be resumed without having to restart from the beginning of the application.

Parameters:
argc  
argv   The only accepted command-line parameter is the name of the configuration file.