private void listen(int port, int wss_port) {
		try {
			ServerSocket listener = new ServerSocket(port);
			
			try {
				new FlashPolicyServer().run();
			} catch (Exception e) {
				e.printStackTrace();
			}
			
			try {
				new Websocket(wss_port).start();
			} catch (Exception e) {
				e.printStackTrace();
			}
			
			System.out.println(String.format("Listening on port %s (Websocket: %s)", port, wss_port));
			
			while (true) {
				Socket socket = listener.accept();
				new SessionHandler(socket).start();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}