Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/p2p/Notifier.py
blob: d6abc5b128abb525491518af42d449c80b06697e (plain)
1
2
3
4
5
6
7
8
9
10
from sugar.p2p import network

class Notifier:
	def __init__(self, service):
		address = service.get_address()
		port = service.get_port()
		self._client = network.GroupClient(address, port)
		
	def notify(self, msg):
		self._client.send_msg(msg)