sugar-toolkit-gtk3/sugar/p2p/Notifier.py
2006-06-20 09:39:36 -04:00

11 lines
247 B
Python

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)