if (argv.length < 3)
{
System.out.println("Usage: java ThreadSolverClient [host] [port] [problem]");
System.exit(1);
}
String host = argv[0];
int port = 3000;
double pval = 0;
try
{
port = Integer.parseInt(argv[1]);
pval = Double.valueOf(argv[2]).doubleValue();
}
catch (NumberFormatException e)
{}
ThreadSolverClient client = new ThreadSolverClient(host, port, pval);
System.out.println("Attaching client to " + host + ":" + port + "...");
client.run();