Adding files from CVS

master
Coleman 2008-07-03 00:55:13 -05:00
commit 22c8006537
1 changed files with 25 additions and 0 deletions

25
PortU.java Normal file
View File

@ -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 <address> <port>" );
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;
}
}
}