sugar-toolkit-gtk3/sugar/p2p/Notifier.py
Marco Pesenti Gritti 0cae557ab5 Register the model service and start working on
looking it up
2006-06-16 14:20:09 -04:00

12 lines
290 B
Python

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)