public static void main(String[] args){
		if(args.length < 1){
			System.out.println("TCPServer port number not specified.");
			System.exit(1);
		}

		ServerSocket parentSocket = null;
		try{
			int portNo = Integer.valueOf(args[0]).intValue();
			parentSocket = new ServerSocket(portNo);

			while(true){
				Socket childSocket = parentSocket.accept();
				ClientHandler client = new ClientHandler(childSocket);
				Thread thread = new Thread(client);
				thread.start();
			}
		} catch (Exception e){
			System.out.println(e.getMessage());
		} 
	}