00001 /* 00002 * matching.h 00003 * 00004 * author: Roberto Piassi Passos Bodo 00005 * email: rppbodo@gmail.com 00006 */ 00007 00008 #include <stdio.h> 00009 #include <stdlib.h> 00010 #include <math.h> 00011 00012 #include <unistd.h> 00013 #include <fcntl.h> 00014 #include <sys/poll.h> 00015 #include <sys/time.h> 00016 00017 #include "global.h" 00018 #include "table.h" 00019 00020 #define MAX_ERRORS 25 00021 #define DEADLINE 100 00022 00023 long int virtual_clock; 00024 long int prev_virtual_clocks[2]; 00025 00026 long int real_clock; 00027 long int prev_real_clocks[2]; 00028 00029 struct timeval starting_time, current_time; 00030 00031 unsigned char** c; 00032 00033 short FLAG; 00034 long int before, after; 00035 00036 void matching();