Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-11 09:49:52 -0400
committeraleherbau2011-05-11 09:49:52 -0400
commit3c43ed9828902c5bf7d131742f10d507f64293cd (patch)
tree40d590a59a0719241066ac5e51713c798bbc3981 /python/src/tcf/__init__.py
parentaf121b71d340484580a2c1e47f70f1005db9cd9f (diff)
downloadorg.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.gz
org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.tar.xz
org.eclipse.tcf-3c43ed9828902c5bf7d131742f10d507f64293cd.zip
TCF Python: Implemented LocatorService
Diffstat (limited to 'python/src/tcf/__init__.py')
-rw-r--r--python/src/tcf/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/src/tcf/__init__.py b/python/src/tcf/__init__.py
index 2031cb285..9c0c5a472 100644
--- a/python/src/tcf/__init__.py
+++ b/python/src/tcf/__init__.py
@@ -33,6 +33,12 @@ def connect(params, wait=True):
c = protocol.invokeAndWait(p.openChannel)
return c
+def peers():
+ "Return list of discovered remote peers"
+ locator = protocol.getLocator()
+ if locator:
+ return protocol.invokeAndWait(locator.getPeers)
+
def _openChannel(p, done=None):
assert protocol.isDispatchThread()
c = p.openChannel()

Back to the top