9#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
34static uint32_t
idx[BOARD_NUM] = {0};
65 if( *sender_addr == eb1)
69 else if( *sender_addr == eb2)
73 else if( *sender_addr == eb3)
77 else if( *sender_addr == eb4)
81 else if( *sender_addr == eb5)
85 else if( *sender_addr == eb6)
91 sender_addr->addr_to_string(str, 64, 1);
92 printf(
" no board %s\n", str);
104 sockaddr_in *
p = (sockaddr_in *) sender_addr;
106 a.sin_addr.s_addr = eb2_addr;
109 if(
p->sin_addr.s_addr == a.sin_addr.s_addr )
116 if(
p->sin_addr.s_addr == eb4_addr )
123 printf(
" no board %04X\n",
p->sin_addr.s_addr);
152 char *tmp = ((
char*) pkt);
153 memcpy(&
txtime, (&tmp[8]), 8);
157 printf(
"received packet size %d\n", pkt_size);
164 printf(
"Fisrt packet from board=%d\n",
board);
201 printf(
">periodic check:\n\tpkt_size = %d\n" \
216 char output[2048], tmp[64];
217 sprintf(output,
"Printing data...\n");
220 sprintf(tmp,
"errors board[%d] \n",
board);
229#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
230 AfxMessageBox(output);
237#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
240int gettimeofday(
struct timeval *tv,
struct timezone *tz)
246 unsigned __int64 tmpres = 0;
247 static int tzflag = 0;
251 GetSystemTimeAsFileTime(&ft);
256 tmpres |= ft.dwHighDateTime;
258 tmpres |= ft.dwLowDateTime;
265 tmpres -= DELTA_EPOCH_IN_MICROSECS;
269 tv->tv_sec = (long)(tmpres / 1000000UL);
270 tv->tv_usec = (long)(tmpres % 1000000UL);
282 tz->tz_minuteswest = _timezone / 60;
283 tz->tz_dsttime = _daylight;
struct timeval recvTime[BOARD_NUM]
uint32_t lateErr[BOARD_NUM]
bool do_real_check(int board, void *pkt, ACE_UINT16 pkt_size)
uint32_t progNum[BOARD_NUM]
struct timeval diffTime[BOARD_NUM]
uint32_t sizeErr[BOARD_NUM]
struct timeval prevTime[BOARD_NUM]
ACE_UINT16 size_ini[BOARD_NUM]
bool check_received_pkt(ACE_INET_Addr *sender_addr, void *pkt, ACE_UINT16 pkt_size)
uint32_t prevNum[BOARD_NUM]
static uint32_t idx[BOARD_NUM]
uint32_t missErr[BOARD_NUM]