FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
no_link
int no_link
Definition:
test_big_client.c:8
i
int i
Definition:
db_dim_client.c:21
buff
int buff[BUFFSIZE]
Definition:
db_dim_client.c:15
Here is the caller graph for this function:
dim
src
examples
test_big_client.c
Generated on Sun Sep 18 2016 20:50:31 for FACT++ by
1.8.11