helpers.h File Reference

Functions file parsing information the configuration files. More...

#include "../../alclib/defines.h"

Include dependency graph for helpers.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  repair_arguments

Typedefs

typedef repair_arguments repair_arguments_t

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 file parsing information 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.h.


Typedef Documentation

typedef struct repair_arguments repair_arguments_t


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.

References repair_arguments::base_dir, repair_arguments::fdt_file, repair_arguments::fec_ratio, repair_arguments::flute_conf_file, and MAX_PATH_LENGTH.

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:01:41 2007 for MAD-FCL by  doxygen 1.5.0