Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/p2p/Notifier.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/p2p/Notifier.py')
-rw-r--r--sugar/p2p/Notifier.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/sugar/p2p/Notifier.py b/sugar/p2p/Notifier.py
index 54ce735..2672f28 100644
--- a/sugar/p2p/Notifier.py
+++ b/sugar/p2p/Notifier.py
@@ -2,15 +2,8 @@ from sugar.p2p import network
from sugar.presence.Service import Service
class Notifier:
- TYPE = "_olpc_model_notification._udp"
- ADDRESS = "224.0.0.222"
- PORT = 6300
-
- def __init__(self, group, name):
- service = Service(name, Notifier.TYPE, Notifier.PORT, Notifier.ADDRESS)
- service.register(group)
-
- address = service.get_group_address()
+ def __init__(self, service):
+ address = service.get_address()
port = service.get_port()
self._client = network.GroupClient(address, port)