Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gdut-drcom
Commits
7fc47cbd
Commit
7fc47cbd
authored
Dec 07, 2016
by
chenhaowen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version 1.6.5
parent
f0890d8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/Makefile
src/Makefile
+1
-1
src/auth.c
src/auth.c
+14
-2
No files found.
src/Makefile
View file @
7fc47cbd
#CC:=gcc
VERSION
:=
1.6.
4
VERSION
:=
1.6.
5
CFLAGS
+=
-Wall
-fPIC
-DDEBUG
-DVERSION
=
\"
$(VERSION)
\"
objects
=
config.o auth.o
...
...
src/auth.c
View file @
7fc47cbd
...
...
@@ -232,7 +232,13 @@ HEART_BEAT_START:
rand_num
[
0
]
=
rand_tmp
/
0x100
;
rand_num
[
1
]
=
rand_tmp
%
0x100
;
sleep
(
3
);
int
i
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
if
(
drcom_config
.
exit
)
return
0
;
sleep
(
1
);
}
while
(
1
)
{
length
=
make_keep_alive2_pkt1
(
pkt_data
,
kp2_cnt
,
ka2_flag
,
rand_num
,
ka2_key
);
...
...
@@ -309,7 +315,12 @@ HEART_BEAT_START:
kp2_cnt
++
;
sleep
(
17
);
for
(
i
=
0
;
i
<
17
;
i
++
)
{
if
(
drcom_config
.
exit
)
return
0
;
sleep
(
1
);
}
}
#ifdef WIN32
closesocket
(
client_sockfd
);
...
...
@@ -323,6 +334,7 @@ HEART_BEAT_START:
int
exit_auth
(
void
)
{
fprintf
(
drcom_config
.
log_file
,
"gdut-drcom heart-beat exiting!
\r\n
"
);
drcom_config
.
exit
=
1
;
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment