2006-05-15 21:03:05 +02:00
|
|
|
from sugar.p2p import network
|
2006-05-15 20:48:08 +02:00
|
|
|
|
|
|
|
class Notifier:
|
2006-06-16 20:20:09 +02:00
|
|
|
def __init__(self, service):
|
|
|
|
address = service.get_address()
|
2006-05-15 20:48:08 +02:00
|
|
|
port = service.get_port()
|
|
|
|
self._client = network.GroupClient(address, port)
|
|
|
|
|
|
|
|
def notify(self, msg):
|
|
|
|
self._client.send_msg(msg)
|