all ip addresses of machines in the local network
Gabriel Genellina
gagsl-py at yahoo.com.ar
Thu Aug 31 10:35:40 EDT 2006
At Wednesday 30/8/2006 21:54, damacy wrote:
>in my program so far, multiple threads (255 threads in total) spawned
>at once with each one of them trying to call socket.gethostbyaddr(ip)
>function. i.e. if exception thrown, no machine found. i used .join() to
>wait for the threads to terminate. it's fully working however the
>problem is that it's too slow. it takes approx. 14 seconds to process
>(i tried using 'ping' but it's even slower.).
Do you have control over the server program?
Use UPD to broadcast a message, and make the server answer on that.
Or google for ZeroConf, UPnP or other techniques used for service discovery.
Gabriel Genellina
Softlab SRL
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the Python-list
mailing list