This commit is contained in:
2023-04-20 06:17:41 +02:00
parent 3871bb8d99
commit 601b5de46d
14 changed files with 783 additions and 0 deletions

View File

@@ -0,0 +1 @@

Binary file not shown.

Binary file not shown.

10
teil13/network/code.py Normal file
View File

@@ -0,0 +1,10 @@
def receive(conn):
msg = conn.recv(64).decode('utf-8')
return msg
def send(client, msg):
message = msg.encode('utf-8')
client.send(message)

12
teil13/network/const.py Normal file
View File

@@ -0,0 +1,12 @@
#network/const.py
import socket
# TCP Port
__PORT__ = 6554
#Server-IP
__SERVER__ = socket.gethostbyname(socket.gethostname())
# Server-Adresse (IP,Port)
__ADDRESS__ = (__SERVER__,__PORT__)