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

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)