lct_hdr.h File Reference

LCT header. More...

#include "defines.h"

Include dependency graph for lct_hdr.h:

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

Go to the source code of this file.

Data Structures

struct  def_lct_hdr

Typedefs

typedef def_lct_hdr def_lct_hdr_t

Functions

int add_fdt_lct_he (def_lct_hdr_t *def_lct_hdr, int hdrlen, unsigned int fdt_instance_id)
int add_cenc_lct_he (def_lct_hdr_t *def_lct_hdr, int hdrlen, unsigned char content_enc_algo)
int add_fti_0_2_128_130_lct_he (def_lct_hdr_t *def_lct_hdr, int hdrlen, unsigned long long transferlen, unsigned short fec_inst_id, unsigned short eslen, unsigned int max_sblen)
int add_fti_3_lct_he (def_lct_hdr_t *def_lct_hdr, int hdrlen, unsigned long long transferlen, unsigned char m, unsigned char G, unsigned short eslen, unsigned short max_sblen, unsigned short mxnbofes)
int add_fti_129_lct_he (def_lct_hdr_t *def_lct_hdr, int hdrlen, unsigned long long transferlen, unsigned short fec_inst_id, unsigned short eslen, unsigned short max_sblen, unsigned short mxnbofes)
int add_nop_lct_he (void)
int add_auth_lct_he (void)
int add_time_lct_he (void)


Detailed Description

LCT header.

Author
peltotal
Date
2007/02/26 13:48:19
Revision
1.23

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: 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

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 lct_hdr.h.


Typedef Documentation

typedef struct def_lct_hdr def_lct_hdr_t


Function Documentation

int add_auth_lct_he ( void   ) 

Definition at line 155 of file lct_hdr.c.

int add_cenc_lct_he ( def_lct_hdr_t def_lct_hdr,
int  hdrlen,
unsigned char  content_enc_algo 
)

This function adds CENC LCT extension header to FLUTE's header.

Parameters:
def_lct_hdr pointer to the default LCT header
hdrlen current length of FLUTE header
content_enc_algo content encoding algorith used with the FDT instance payload
Returns:
number of bytes added to the FLUTE's header

Definition at line 55 of file lct_hdr.c.

References EXT_CENC.

Referenced by send_unit().

Here is the caller graph for this function:

int add_fdt_lct_he ( def_lct_hdr_t def_lct_hdr,
int  hdrlen,
unsigned int  fdt_instance_id 
)

This function adds FDT LCT extension header to FLUTE's header.

Parameters:
def_lct_hdr pointer to the default LCT header
hdrlen current length of FLUTE header
fdt_instance_id FDT instance id
Returns:
number of bytes added to the FLUTE's header

Definition at line 42 of file lct_hdr.c.

References EXT_FDT, and FLUTE_VERSION.

Referenced by send_unit().

Here is the caller graph for this function:

int add_fti_0_2_128_130_lct_he ( def_lct_hdr_t def_lct_hdr,
int  hdrlen,
unsigned long long  transferlen,
unsigned short  fec_inst_id,
unsigned short  eslen,
unsigned int  max_sblen 
)

This function adds FTI (FEC Encoding IDs 0, 2, 128, 130) LCT extension header to FLUTE's header.

Parameters:
def_lct_hdr pointer to the default LCT header
hdrlen current length of FLUTE header
transferlen length of the transport object
fec_inst_id FEC instance id (or reserved/zeroed with ID 0)
eslen encoding symbol length
max_sblen maximum source block length
Returns:
number of bytes added to the FLUTE's header

Definition at line 67 of file lct_hdr.c.

References EXT_FTI.

Referenced by send_unit().

Here is the caller graph for this function:

int add_fti_129_lct_he ( def_lct_hdr_t def_lct_hdr,
int  hdrlen,
unsigned long long  transferlen,
unsigned short  fec_inst_id,
unsigned short  eslen,
unsigned short  max_sblen,
unsigned short  mxnbofes 
)

Definition at line 121 of file lct_hdr.c.

References EXT_FTI.

Referenced by send_unit().

Here is the caller graph for this function:

int add_fti_3_lct_he ( def_lct_hdr_t def_lct_hdr,
int  hdrlen,
unsigned long long  transferlen,
unsigned char  m,
unsigned char  G,
unsigned short  eslen,
unsigned short  max_sblen,
unsigned short  mxnbofes 
)

This function adds FTI (FEC Encoding ID 3) LCT extension header to FLUTE's header.

Parameters:
def_lct_hdr pointer to the default LCT header
hdrlen current length of FLUTE header
transferlen length of the transport object
m finite field parameter
G number of encoding symbols per FLUTE packet
eslen encoding symbol length
max_sblen maximum source block length
mxnbofes maximum number of encoding symbols per block
Returns:
number of bytes added to the FLUTE's header

Definition at line 93 of file lct_hdr.c.

References EXT_FTI.

Referenced by send_unit().

Here is the caller graph for this function:

int add_nop_lct_he ( void   ) 

This function adds NOP LCT extension header to FLUTE's header. Not yet implemented.

Returns:
number of bytes added to the FLUTE's header

Definition at line 149 of file lct_hdr.c.

int add_time_lct_he ( void   ) 

This function adds TIME LCT extension header to FLUTE's header. Not yet implemented.

Returns:
number of bytes added to the FLUTE's header

Definition at line 161 of file lct_hdr.c.


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