mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-07 07:11:36 +01:00
[git fast commit] 02. Feb 2019 - 23:56:01
This commit is contained in:
@@ -3,7 +3,7 @@ from threading import Thread
|
||||
import NetworkParser
|
||||
|
||||
TCP_IP = '127.0.0.1'
|
||||
TCP_PORT = 7041
|
||||
TCP_PORT = 7040
|
||||
BUFFER_SIZE = 2048
|
||||
|
||||
def listen():
|
||||
@@ -18,5 +18,9 @@ def listen():
|
||||
def t_listen(conn):
|
||||
data = conn.recv(BUFFER_SIZE).decode('utf-8')
|
||||
ret = NetworkParser.handleInput(data)
|
||||
if not ret:
|
||||
ret = "Rating Backend Error"
|
||||
if type(ret) == str:
|
||||
ret.encode("utf-8")
|
||||
conn.send(ret)
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user