aboutsummaryrefslogtreecommitdiff
path: root/CS2452/assign5/src/Test.java
blob: ed6234c6447c432d194d51732196108d5aefb8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Test
{
	public static void main(String[] args)
	{
		try
		{
			if (args.length != 1)
			{
				System.out.println("usage: java Test listeningPort");
				System.exit(1);
			}
			System.out.println("Test progam starts");

			WRServer server = new WRServer(Integer.parseInt(args[0]));
			server.t.join();

			System.out.println("Test progam ends");
		} catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}