threading a thread

tubby tubby at bandaheart.com
Tue Feb 27 13:21:03 EST 2007


I have a program written in Python that checks a class B network (65536 
hosts) for web servers. It does a simple TCP socket connect to port 80 
and times out after a certain periods of time. The program is threaded 
and can do all of the hosts in about 15 minutes or so. I'd like to make 
it so that I can check for other open ports (instead of just port 80) 
and I'd like to thread the port checks as well.

Right now I'm just prototyping and the threaded hosts portion works very 
well for my needs. I'd just like to add a threaded ports check and 
wanted to know if anyone had done something similar in Python.

Many thanks



More information about the Python-list mailing list