HI, im a writing a program where you can specify an IP and another IP to scan up too.
For example:
IP: 127.0.0.1
Other IP: 127.0.0.255
It would scan the addresses 127.0.0.1 and 127.0.0.255 for specified services running(HTTP,TELNET,FTP,SMTP...).
This is what I want to do.
*Open a new thread for each adresss, I want each new thread to scan for these services and when it has finished close its self.

I have no experience with thread programming, and I am wonering if anybody woudl be able to provide info on howto
(1)Open a thread
(2)Close a thread
(3)Any other info I need to know but did not list