rename host argument to client
from connectto to host Change-Id: I4835148b9b7e4675ba70e588998eadc0889735c2 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21289 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
@@ -203,7 +203,7 @@ class Client(object):
|
|||||||
devport, baudrate=baudrate, timeout=1)
|
devport, baudrate=baudrate, timeout=1)
|
||||||
self.connection.callbacks = []
|
self.connection.callbacks = []
|
||||||
elif 'testing' not in opts:
|
elif 'testing' not in opts:
|
||||||
host = opts.pop('connectto', 'localhost')
|
host = opts.pop('host', 'localhost')
|
||||||
port = int(opts.pop('port', 10767))
|
port = int(opts.pop('port', 10767))
|
||||||
self.contactPoint = "tcp://%s:%d" % (host, port)
|
self.contactPoint = "tcp://%s:%d" % (host, port)
|
||||||
self.connection = TCPConnection(host, port)
|
self.connection = TCPConnection(host, port)
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ class MainWindow(QMainWindow):
|
|||||||
if ':' in host:
|
if ':' in host:
|
||||||
host, port = host.split(':', 1)
|
host, port = host.split(':', 1)
|
||||||
port = int(port)
|
port = int(port)
|
||||||
node = QSECNode({'connectto': host, 'port': port}, parent=self)
|
node = QSECNode({'host': host, 'port': port}, parent=self)
|
||||||
host = '%s:%d' % (host, port)
|
host = '%s:%d' % (host, port)
|
||||||
|
|
||||||
host = '%s (%s)' % (node.equipmentId, host)
|
host = '%s (%s)' % (node.equipmentId, host)
|
||||||
|
|||||||
Reference in New Issue
Block a user