helpers.c File Reference

Functions for parsing information from the configuration files. More...

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include "helpers.h"

Include dependency graph for helpers.c:

Go to the source code of this file.

Functions

int parse_repair_conf_file (char *repair_conf_file, repair_arguments_t *ra)
int parse_flute_conf_file (repair_arguments_t *ra)


Detailed Description

Functions for parsing information from the configuration files.

Author
peltotal
Date
2007/02/27 11:32:01
Revision
1.10

MAD-FLUTE-REPAIR-SERVER: Implementation of repair server for FLUTE protocol. Copyright (c) 2005-2007 TUT - Tampere University of Technology main authors/contacts: jani.peltotalo@tut.fi and sami.peltotalo@tut.fi

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file helpers.c.


Function Documentation

int parse_flute_conf_file ( repair_arguments_t ra  ) 

This function parses FLUTE session configuration file.

Parameters:
ra structure where to store repair server configuration arguments
Returns:
0 in success, -1 otherwise

Definition at line 121 of file helpers.c.

Referenced by main(), and repair_sender().

Here is the caller graph for this function:

int parse_repair_conf_file ( char *  repair_conf_file,
repair_arguments_t ra 
)

This function parses repair server configuration file.

Parameters:
repair_conf_file file which contains repair server configuration arguments
ra structure where to store repair server configuration arguments
Returns:
0 in success, -1 otherwise

Definition at line 33 of file helpers.c.

References repair_arguments::flute_conf_file, MAX_PATH_LENGTH, repair_arguments::ptm_repair_sdp_file, repair_arguments::repair_method, and repair_arguments::requested_blocks_file.

Referenced by main().

Here is the caller graph for this function:


Generated on Fri Mar 9 20:08:56 2007 for MAD-FCL by  doxygen 1.5.0