tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 74482492ad56745ed6161c7ead147e8d36856e3e
parent 231293ab8be7fefb57d9a1fc15d2411f1f3baafa
Author: rbckman <rob@tarina.org>
Date:   Tue, 10 Jan 2023 15:38:44 +0000

hjell

Diffstat:
Mtarina.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -1180,13 +1180,13 @@ def sendtoserver(host, port, data): ##--------------Listen for Clients----------------------- def listenforclients(host, port, q): - s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - s.bind((host,port)) #s.settimeout(0) print("listening on port "+str(port)) while True: try: + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.bind((host,port)) s.listen(5) c, addr = s.accept() data = c.recv(1024).decode() @@ -1206,6 +1206,7 @@ def listenforclients(host, port, q): break except: print("somthin wrong") + s = '' #--------------Write the menu layer to dispmanx--------------