Skip to content
Snippets Groups Projects
Commit 082bcb49 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

Update server.py

parent cf9bbcee
No related branches found
No related tags found
1 merge request!2WIP - 001 - addingserver
......@@ -2,12 +2,12 @@
import socket
# SERVER PORT
Port = 9393
__RDOS_Port__ = 9393
# Creating Socket IP4 TCP
def server_conn(address):
def server_conn(address, PORT):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
#BINDING
serv.bind((address,Port))
serv.bind((address,PORT))
# Listening to 1 CLient
serv.listen()
#accepting the connection from client and getting client IP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment