config.c File Reference

Globus ftp demo configuration file management. More...

#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "ftp_demo.h"
#include "globus_common.h"
#include "globus_symboltable.h"
#include "globus_rsl.h"
#include "globus_ftp_client.h"
#include "printf_plugin.h"
#include "netlogger_plugin.h"
#include "control_plugin.h"
#include "reliability_plugin.h"

Functions

int ftp_demo_config ( ftp_demo_config_t * demo_config, char * filename)
 Parse the configuration file. More...


Variables

char** environ


Detailed Description

Globus ftp demo configuration file management.


Function Documentation

int ftp_demo_config ( ftp_demo_config_t * demo_config,
char * filename )
 

Parse the configuration file.

This function reads the given configuration file and then the RSL in the file into the demo_config structure. The syntax of the configuration RSL is described in Configuration File.

Parameters:
demo_config   A pointer to the demo configuration structure for this application run.
filename   The file name containing the configuration RSL.
Return values:
0   Config file parsed successfully.
1   Could not activate the RSL module.
2   Could not open the config file
3   Could not parse RSL.
4   Could not evaluate the RSL substitutions.