commit 22c80065379bb59a161642ff06f62ac48a2141ce Author: Coleman Date: Thu Jul 3 00:55:13 2008 -0500 Adding files from CVS diff --git a/PortU.java b/PortU.java new file mode 100644 index 0000000..fad2eb6 --- /dev/null +++ b/PortU.java @@ -0,0 +1,25 @@ +/** + * @author Coleman And Jon + * + */ +import java.net.Socket; + +public class PortU { + + public static void main ( String[] args ) { + if ( args.length < 2 ) { + System.out.println ( "usage: PortU
" ); + System.exit ( 1 ); + } + while ( true ) { + try { + Socket mysocket = new Socket ( args[0], (new java.lang.Integer ( args[1] )).intValue() ); + } + catch ( Exception exception ) { + continue; + } + System.out.println ( "Finished server " + args[0] + " on port " + args[1] ); + break; + } + } +}