blocking_alg.c File Reference

Algorithm for computing source block structure. More...

#include <stdlib.h>
#include <stdio.h>
#include "blocking_alg.h"
#include "mad.h"

Include dependency graph for blocking_alg.c:

Go to the source code of this file.


blocking_struct_tcompute_blocking_structure (unsigned long long L, unsigned int B, unsigned int E)

Detailed Description

Algorithm for computing source block structure.

2007/02/28 08:58:00

MAD-ALCLIB: Implementation of ALC/LCT protocols, Compact No-Code FEC, Simple XOR FEC, Reed-Solomon FEC, and RLC Congestion Control protocol. Copyright (c) 2003-2007 TUT - Tampere University of Technology main authors/contacts: and

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

In addition, as a special exception, TUT - Tampere University of Technology gives permission to link the code of this program with the OpenSSL library (or with modified versions of OpenSSL that use the same license as OpenSSL), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than OpenSSL. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

Definition in file blocking_alg.c.

Function Documentation

blocking_struct_t* compute_blocking_structure ( unsigned long long  L,
unsigned int  B,
unsigned int  E 

This function calculates blocking scheme parameters.

L transport object length
B source block length
E encoding symbol length
structure containing blocking scheme parameters, NULL in error situations

Definition at line 40 of file blocking_alg.c.

References blocking_struct::A_large, blocking_struct::A_small, blocking_struct::I, lldiv(), blocking_struct::N, lldiv_t::quot, and lldiv_t::rem.

Referenced by analyze_packet(), http_file_repair(), is_enough_source_block_numbers(), main(), send_fdt_instance(), send_file(), and send_repair_data().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Fri Mar 9 20:00:48 2007 for MAD-FCL by  doxygen 1.5.0