FACT++  1.0
void rout ( int *  tag,
int *  buff,
int *  size 
)

Definition at line 10 of file test_big_client.c.

References i, and no_link.

Referenced by main().

13 {
14 static int bad = 0;
15 int i;
16 static int n_recvd = 0;
17 
18  if(!bad)
19  {
20  if (*buff == no_link)
21  {
22 /*
23  for(i = 0; i < MAX_SERVICES; i++)
24  Recvd[i] = 0;
25 */
26  bad = 1;
27  n_recvd = 0;
28  }
29  }
30  if(bad)
31  {
32  if (*buff != no_link)
33  {
34 /*
35  for(i = 0; i < MAX_SERVICES; i++)
36  Recvd[i] = 0;
37 */
38  bad = 0;
39  n_recvd = 0;
40  }
41  }
42 /*
43  if(bad)
44  {
45  Recvd[*tag] = *buff;
46  }
47  else
48  {
49  Recvd[*tag] = (*buff)+1;
50  }
51 */
52  n_recvd++;
53 /*
54  for(i = 0; i <= MAX_SERVICES; i++)
55  {
56  if(Recvd[i] != 0)
57  n_recvd++;
58  }
59 */
60 /*
61  if(!((*tag) % 1000))
62 */
63 
64  if(!(n_recvd % 1000))
65  printf("Received n = %d, %d = %d\n",n_recvd, *tag, *buff);
66 }
int no_link
int i
Definition: db_dim_client.c:21
int buff[BUFFSIZE]
Definition: db_dim_client.c:15

+ Here is the caller graph for this function: