I wanted to have a flash game UI with all heavy duty A.I. processing happening in the web backend in a dedicated daemon process (C/C++/Java) that is always running and looking for messages on sockets. The UI would send simple messages to the daemon process (C/C++/Java) through PHP/JSP servlets...