예제 #1
0
 public ActionDispatcher(ActionQueues stacks)
 {
     _stacks         = stacks;
     _clicker        = new Clicking();
     _typer          = new Typing();
     _mouseThread    = new Thread(initMouseThread);
     _keyboardThread = new Thread(initKeyboardThread);
 }
        public AppInterface(int port)
        {
            _speakers     = new Speakers();
            _screen       = new ScreenDev();
            _actionStacks = new ActionQueues();

            _actionDispatcher = new ActionDispatcher(_actionStacks);
            _packetDecomposer = new Decomposer();

            _actionServerThread = new Thread(() => actionServer(port));
            _pollingThread      = new Thread(() => PollPort());
            _screenThread       = new Thread(() => _screen.start(_clientAddress, _clientPort + 1));
            _soundThread        = new Thread(() => _speakers.start(_clientAddress, _clientPort));
            _connectionThread   = new Thread(() => EstablishConnection());
        }