Commit 449ec21c authored by Roman Haefeli's avatar Roman Haefeli
Browse files

set port offset for one2many[Mo,Bi] to 1 instead of 5

parent 86c74966
......@@ -87,7 +87,7 @@ class One2ManyBiProxy(threading.Thread):
def main():
try:
one_port = int(sys.argv[1])
many_port = one_port + 5
many_port = one_port + 1
proxy = One2ManyBiProxy(one_port=one_port, many_port=many_port)
proxy.start()
proxy.join()
......
......@@ -72,7 +72,7 @@ class One2ManyMoProxy(threading.Thread):
def main():
try:
source_port = int(sys.argv[1])
sink_port = source_port + 5
sink_port = source_port + 1
proxy = One2ManyMoProxy(listen_port=source_port, send_port=sink_port)
proxy.start()
proxy.join()
......
......@@ -98,11 +98,11 @@ def start_proxy():
if proxydef['type'] == 'one2oneBi':
obj = proxies.One2OneBiProxy(listen_port=proxydef['port'])
elif proxydef['type'] == 'one2manyMo':
obj = proxies.One2ManyMoProxy(listen_port=proxydef['port'], send_port=proxydef['port']+5)
obj = proxies.One2ManyMoProxy(listen_port=proxydef['port'], send_port=proxydef['port']+1)
elif proxydef['type'] == 'mirror':
obj = proxies.MirrorProxy(listen_port=proxydef['port'])
elif proxydef['type'] == 'one2manyBi':
obj = proxies.One2ManyBiProxy(one_port=proxydef['port'], many_port=proxydef['port']+5)
obj = proxies.One2ManyBiProxy(one_port=proxydef['port'], many_port=proxydef['port']+1)
elif proxydef['type'] == 'many2manyBi':
obj = proxies.Many2ManyBiProxy(listen_port=proxydef['port'])
else:
......
Supports Markdown
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