src/vfer_func_rel.c File Reference

Implements functions controlling reliability in VFER. More...

#include "vfer_func_rel.h"

Go to the source code of this file.

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

Implements functions controlling reliability in VFER.

Author:
Ivan Beschastnikh
This file implements the boolean functions that are used to determine whether a frame should be kept around (retransmitted) or dropped.

Definition in file vfer_func_rel.c.


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