Class ThreadMultiplexor

java.lang.Object
com.softwaremining.ui.ScreenServer
com.softwaremining.ui.web.socket.ThreadMultiplexor
All Implemented Interfaces:
Runnable

public class ThreadMultiplexor extends ScreenServer
Extends the abstract class "SocketScreenServer". The HTTP Servlet creates a new ThreadMultiplexor for each incoming session. This class will then manage the launch of the application, and the communication (ACCEPT/DISPLAY) between the instance of application and the HTTP session. It works by starting a TCP Client/Server on a random port. It uses the TCP communication for control (wait) states and for communications. The main methods "wakeUpToProgram" and "switchToUser" will pass control between application and user