This commit is contained in:
yumoqing 2022-11-09 23:06:46 +08:00
parent 4af076798a
commit 8eea5b6882
2 changed files with 138 additions and 134 deletions

View File

@ -60,6 +60,9 @@ class UdpWidget(EventDispatcher):
}
bd = self.dataencoder.pack('none', d, uncrypt=True)
self.udp_transport.broadcast(bd)
return
"""
# seem to not need to wait
if peer_id is None:
# print('get_peer_pubkey():return')
return
@ -71,6 +74,7 @@ class UdpWidget(EventDispatcher):
if self.dataencoder.exist_peer_publickeys(peer_id):
return self.dataencder.public_keys[peer_id]
raise Exception('timeout')
"""
def comm_callback(self, data, addr):
# print('comm_callback():', data, 'addr=', addr)

View File

@ -1 +1 @@
__version__ = '0.4.1'
__version__ = '0.4.2'