Commit c7e74b4d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

client: add port

parent f62cc0d0
...@@ -30,14 +30,14 @@ class Client(_Parent): ...@@ -30,14 +30,14 @@ class Client(_Parent):
'builder': RbprmBuilder, 'builder': RbprmBuilder,
} }
def __init__(self, url=None, context="corbaserver"): def __init__(self, url=None, context="corbaserver", port=13331):
""" """
Initialize CORBA and create default clients. Initialize CORBA and create default clients.
:param url: URL in the IOR, corbaloc, corbalocs, and corbanames formats. :param url: URL in the IOR, corbaloc, corbalocs, and corbanames formats.
For a remote corba server, use For a remote corba server, use
url = "corbaloc:iiop:<host>:<port>/NameService" url = "corbaloc:iiop:<host>:<port>/NameService"
""" """
self._initOrb(url) self._initOrb(url, port)
self._makeClients("rbprm", self.defaultClients, context) self._makeClients("rbprm", self.defaultClients, context)
# self.builder is created by self._makeClients # self.builder is created by self._makeClients
......
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