src/vfer_func_rel.h File Reference

Supporting file for func_rel.c. More...

#include "vfer.h"

Go to the source code of this file.

Defines

#define fratio_C   .5
#define fratio_M   10
#define fratio_R   5

Functions

bool_t rf_always_reliable (context_t *c)
bool_t rf_frag_ratio (int frag_size, int dim1, int dim2, int **mat)


Detailed Description

Supporting file for func_rel.c.

Author:
Ivan Beschastnikh
This file defines the prototypes and the necessary constants used by the reliability functions implemented in func_rel.c

Definition in file vfer_func_rel.h.


Define Documentation

#define fratio_C   .5

Definition at line 27 of file vfer_func_rel.h.

#define fratio_M   10

Definition at line 32 of file vfer_func_rel.h.

#define fratio_R   5

Definition at line 28 of file vfer_func_rel.h.


Function Documentation

bool_t rf_always_reliable ( context_t c  ) 

Full reliability function that never gives up on a datagram

Parameters:
c context
Returns:
1 always

Definition at line 72 of file vfer_func_rel.c.

bool_t rf_frag_ratio ( int  frag_size,
int  dim1,
int  dim2,
int **  mat 
) [inline]

Parameters:
frag_size fragment size
dim1 number of rows in int matrix mat
dim2 number of columns in int matrix mat
mat matrix of negative acknowledgement vectors so far for this frame
Returns:
-1 on error 1 if the frame should be "kept" 0 if the frame should be dropped

Definition at line 32 of file vfer_func_rel.c.


Generated on Tue Aug 8 16:07:21 2006 for VFER by  doxygen 1.4.7