0cae557ab5
looking it up
12 lines
290 B
Python
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)
|