Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Julien David
rdos
Commits
2491833e
Commit
2491833e
authored
Oct 08, 2020
by
Ismail Moumni
Browse files
Adding comments
parent
6fc8e0dd
Pipeline
#1337
passed with stage
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
softwares/server/server.py
View file @
2491833e
#!/usr/bin/env python3
# authors: Julien DAVID & Ismail MOUMNI
import
socket
import
json
...
...
@@ -52,6 +53,9 @@ class RdosServer:
conn
.
close
()
# Function query_client creates an insert query to send to server
# Function takes 2 parameters addr : IP address of client and data : Generators values
# Function return a valid insert query
def
query_client
(
addr
,
data
):
__RDOS_Tool__
=
db
.
li_gen
()
sa
=
__RDOS_Tool__
.
get
(
list
(
data
.
keys
())[
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