public void listen(int port) {
		try {
			server = new ServerSocket(port);
			listening = true;
			while (listening) {
				new HTTPClient(server.accept()).start();
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}