Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rdos
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien David
rdos
Merge requests
!4
Update gitlab ci
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update gitlab ci
update_gitlab-ci
into
master
Overview
0
Commits
4
Pipelines
1
Changes
2
Merged
Julien David
requested to merge
update_gitlab-ci
into
master
4 years ago
Overview
0
Commits
4
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
22603e92
4 commits,
4 years ago
2 files
+
15
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
softwares/server/server.py
+
11
−
9
Options
#
a
uthors : Julien David & Ismail MOUMNI
#
A
uthors : Julien David & Ismail MOUMNI
import
socket
# SERVER PORT
__RDOS_Port__
=
9393
# Creating Socket IP4 TCP
def
server_conn
(
address
,
PORT
):
with
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
as
serv
:
#BINDING
serv
.
bind
((
address
,
PORT
))
# Listening to 1 CLient
#
BINDING
serv
.
bind
((
address
,
PORT
))
# Listening to 1 CLient
serv
.
listen
()
#
a
ccepting the connection from client and getting client IP
#
A
ccepting the connection from client and getting client IP
conn
,
addr
=
serv
.
accept
()
with
conn
:
# Sending
conn
.
send
(
bytes
(
"
Bonjour !!
"
,
"
utf-8
"
))
print
(
'
Connexion acceptée depuis l IP :
'
,
addr
)
# Sending
conn
.
send
(
bytes
(
"
Bonjour !!
"
,
"
utf-8
"
))
print
(
'
Connexion acceptée depuis l IP :
'
,
addr
)
# Receiving Data from Client
data
=
conn
.
recv
(
1024
)
print
(
data
)
serv
.
close
()
Loading