home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor client, add potential map widget.
[plomrogue2-experiments]
/
server.py
diff --git
a/server.py
b/server.py
index 82a10a65fa003b801403d747c278252c0d127539..6e3564b8cf59563fb15b30862e8a91f07dbdbfbb 100755
(executable)
--- a/
server.py
+++ b/
server.py
@@
-1,9
+1,7
@@
#!/usr/bin/env python3
import socketserver
#!/usr/bin/env python3
import socketserver
-import plom_socket_io
import threading
import threading
-import time
import queue
# Avoid "Address already in use" errors.
import queue
# Avoid "Address already in use" errors.
@@
-48,6
+46,8
@@
class IO_Handler(socketserver.BaseRequestHandler):
to send replies back to), and optionally a third element for further
instructions.
"""
to send replies back to), and optionally a third element for further
instructions.
"""
+ import plom_socket_io
+
def caught_send(socket, message):
"""Send message by socket, catch broken socket connection error."""
try:
def caught_send(socket, message):
"""Send message by socket, catch broken socket connection error."""
try: