19#ifndef __debugfunctions__
20#define __debugfunctions__
22#error it seems that file debugFunctions.h is not used anymore
37#include "ace/SOCK_Dgram.h"
39#include "ace/Thread.h"
42#define _LINUX_UDP_SOCKET_
51#define eb1_ip "10.0.1.1"
52#define eb2_ip "10.0.1.2"
53#define eb3_ip "10.0.1.3"
54#define eb4_ip "10.0.1.4"
55#define eb5_ip "10.0.1.5"
56#define eb6_ip "10.0.1.6"
57#define eb7_ip "10.0.1.7"
58#define eb8_ip "10.0.1.8"
59#define eb9_ip "10.0.1.9"
60#define eb10_ip "10.0.1.10"
61#define eb11_ip "10.0.1.11"
63#define eb1_addr inet_addr(eb1_ip)
64#define eb2_addr inet_addr(eb2_ip)
65#define eb3_addr inet_addr(eb3_ip)
66#define eb4_addr inet_addr(eb4_ip)
67#define eb5_addr inet_addr(eb5_ip)
68#define eb6_addr inet_addr(eb6_ip)
69#define eb7_addr inet_addr(eb7_ip)
70#define eb8_addr inet_addr(eb8_ip)
71#define eb9_addr inet_addr(eb9_ip)
72#define eb10_addr inet_addr(eb10_ip)
73#define eb11_addr inet_addr(eb11_ip)
79#define MAX_ACQUISITION 100*1000
89int gettimeofday(
struct timeval *tv,
struct timezone *tz);
91#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
92#define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
101#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
104static int timeval_subtract(
struct timeval *_result,
struct timeval *_x,
struct timeval *_y)
108 if(_x->tv_usec < _y->tv_usec)
110 int nsec = (_y->tv_usec - _x->tv_usec) / 1000000 + 1;
112 _y->tv_usec -= 1000000 * nsec;
116 if(_x->tv_usec - _y->tv_usec > 1000000)
118 int nsec = (_x->tv_usec - _y->tv_usec) / 1000000;
120 _y->tv_usec += 1000000 * nsec;
126 _result->tv_sec = _x->tv_sec - _y->tv_sec;
127 _result->tv_usec = _x->tv_usec - _y->tv_usec;
131 return _x->tv_sec < _y->tv_sec;
bool do_real_check(int board, void *pkt, ACE_UINT16 pkt_size)
bool check_received_pkt(ACE_INET_Addr *sender_addr, void *pkt, ACE_UINT16 pkt_size)