Commit bfc1a5cc authored by Philipp Auersperg's avatar Philipp Auersperg

listen

parent 1046ed1e
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
......
......@@ -289,6 +289,8 @@ class ProcBridgeServer:
server side of protocol
"""
num_connections = 10
def __init__(self, host, port, delegate):
"""
:param host:
......@@ -316,7 +318,7 @@ class ProcBridgeServer:
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# self.socket.bind((self.host, self.port))
self.socket.bind(('', self.port))
self.socket.listen(0)
self.socket.listen(self.num_connections)
t = threading.Thread(target=_start_server_listener, args=(self,))
t.start()
self.started = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment