1

[Python]Listing live nodes on LAN..how to make it fast?

view story
linux-howto

http://ubuntuforums.org – Code: import socket from socket import gaierror,herror ip='192.168.0.' name={ ##name resolver 'Dhir':'Dhiraj PC'## } for i in range(100,110):     add=ip+str(i)     try:         up=socket.gethostbyaddr(add)[0]         if(name.has_key(up)):             print add+'--{'+name.get(up)+'} is up!'         else :              print up+' is up!'     except herror:         pass This is my code...is there any way t (Hardware)