Need to create a program to test for open TCP ports
I have a need for a port testing tool that I can program to to read and send from one node to another in a network. I know there may be tools that could do this for me, but I want flexibility of changing the functionality as the need arises. My preferred language is Java because I would like to run on both windows and Linux.
Here is what I would like the tool to do:
listen on a specified range of ports for a known message and when we receive that message, close that port.
Similarly, I want the program to write a message to a specified set of ports.
After all ports are verified or after a specified timeout, the program should spit out a report (I can handle this part).
As a follow up question once I have the program working, I want to set it up to use secure protocol as an option.
Looks pretty good I'll try this. I'll ask for the http version in a separate question so you get another 500 points
CEHJ
No - don't worry about the points thanks
Christopher Schene
ASKER
What is the purpose of these lines in the example code? I have taken a java class, but most of my programming is in C, C#, Vb.net---I am not familiar with the Hash templates
threadGroup = new ThreadGroup(Server.class.getName());
this.maxConnections = maxConnections;
services = new HashMap<Integer, Listener>();
connections = new HashSet<Connection>(maxConnections);