Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 90

Intentando avahi con threads

Ver diferencias:

Hosts.py
def getLTSPStatus (self):
from Utils.avahiClient import avahiClient
import threading
a = avahiClient()
a = avahiClient()
a.start()
time.sleep(1000)
a.cancel()
names = a.getList()
print names
"""a = avahiClient()
time.sleep(1000)
names = a.getList()
print names
a.kill()
a.kill()"""
return names
# def wakeup(self):

Exportar a: Unified diff