Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Julien David
rdos
Commits
21af4784
Commit
21af4784
authored
Oct 07, 2020
by
Ismail Moumni
Browse files
Rdos TOOL editing in server
parent
b09ab427
Pipeline
#1316
failed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
softwares/server/server.py
View file @
21af4784
...
...
@@ -5,7 +5,7 @@ import datetime
import
os
import
sys
sys
.
path
.
append
(
os
.
path
.
realpath
(
'../softwares/'
))
import
database
as
db
import
database
as
db
# noqa E402
__RDOS_Dict__
=
{
"parameters"
:
"request"
}
...
...
@@ -14,7 +14,7 @@ __RDOS_Dict__ = {"parameters": "request"}
class
RdosServer
:
__RDOS_Tool__
=
db
.
list_generator
s
()
__RDOS_Tool__
=
db
.
list_generator
()
# Function server_conn creates a socket and listens on port 9393
# Function input address : SERVER IP ADRESS & Port server Port
...
...
@@ -54,7 +54,7 @@ class RdosServer:
def
query_client
(
addr
,
data
):
__RDOS_Tool__
=
db
.
list_generator
s
()
__RDOS_Tool__
=
db
.
list_generator
()
sa
=
__RDOS_Tool__
.
get
(
list
(
data
.
keys
())[
0
])
lm
=
list
((
data
.
values
()))
s
=
{
"id"
:
""
,
"idGenerator"
:
""
,
"IP"
:
""
,
"timeSubmitted"
:
""
,
"timeExecuted"
:
""
,
"timeFinished"
:
""
,
"status"
:
""
,
"parametersJSON"
:
""
,
"directory"
:
""
,
"url"
:
""
,
"message"
:
""
,
"email"
:
""
}
...
...
Write
Preview
Supports
Markdown
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