refactor: change default port

This commit is contained in:
Swann Martinez
2019-06-19 17:53:39 +02:00
parent 6f0763c52e
commit 222fd46469
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ class SessionProps(bpy.types.PropertyGroup):
port: bpy.props.IntProperty(
name="port",
description='Distant host port',
default=5555)
default=5554)
add_property_depth: bpy.props.IntProperty(
name="add_property_depth",

View File

@ -32,19 +32,19 @@ class ServerAgent():
# Update all clients
self.pub_sock = self.context.socket(zmq.PUB)
self.pub_sock.setsockopt(zmq.SNDHWM, 60)
self.pub_sock.bind("tcp://*:5556")
self.pub_sock.bind("tcp://*:5555")
time.sleep(0.2)
# Update request
self.request_sock = self.context.socket(zmq.ROUTER)
self.request_sock.setsockopt(zmq.IDENTITY, b'SERVER')
self.request_sock.setsockopt(zmq.RCVHWM, 60)
self.request_sock.bind("tcp://*:5555")
self.request_sock.bind("tcp://*:5554")
# Update collector
self.collector_sock = self.context.socket(zmq.PULL)
self.collector_sock.setsockopt(zmq.RCVHWM, 60)
self.collector_sock.bind("tcp://*:5557")
self.collector_sock.bind("tcp://*:5556")
# poller for socket aggregation
self.poller = zmq.Poller()