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
Allow remote connections into TCP server.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
io_tcp.py
diff --git
a/new2/plomrogue/io_tcp.py
b/new2/plomrogue/io_tcp.py
index 5cf66d9e19fc2b278cd5ed94e5ea0c6721495a91..45bf4471dcce8be7b6c5cdca45b067afebd7313a 100644
(file)
--- a/
new2/plomrogue/io_tcp.py
+++ b/
new2/plomrogue/io_tcp.py
@@
-158,7
+158,7
@@
class PlomTCPServer(socketserver.ThreadingTCPServer):
"""Bind together threaded IO handling server and message queue."""
def __init__(self, queue, port, *args, **kwargs):
"""Bind together threaded IO handling server and message queue."""
def __init__(self, queue, port, *args, **kwargs):
- super().__init__(('
localhost
', port), IO_Handler, *args, **kwargs)
+ super().__init__(('
0.0.0.0
', port), IO_Handler, *args, **kwargs)
self.queue_out = queue
self.daemon_threads = True # Else, server's threads have daemon=False.
self.clients = {}
self.queue_out = queue
self.daemon_threads = True # Else, server's threads have daemon=False.
self.clients = {}