Commit Graph

7 Commits

Author SHA1 Message Date
Ryan Prichard
410749a1b9 Update the TestNetServer.
- Replace the qmake pro file with a Makefile.

 - Move the AgentClient from Shared to TestNetServer.  This file is
   obsoleted by libpconsole.
2012-01-23 22:04:34 -08:00
Ryan Prichard
9f1bdd43ab Don't enable the agent auto-shutdown logic until after the TestNetServer
has started a shell.

I thought this change would fix a problem with the Windows 8 Preview where
the connection shut down immediately after starting.  It did not fix the
problem, which I still don't have an explanation for, but in any case, I
think the change is necessary.
2011-11-25 18:34:33 -08:00
Ryan Prichard
c74f82abdb Pass an initial window size to the agent on startup.
* The TestNet protocol starts with a terminal resize escape sequence, so
   the server discards all input until it sees the sequence, and it delays
   starting the agent.  Eventually, the goal is to implement an SSH server,
   and the SSH message that creates a PTY also provides the terminal size.
2011-11-24 03:03:25 -08:00
Ryan Prichard
166c553f15 Add initial server support for resizing terminal windows. 2011-11-24 03:03:25 -08:00
Ryan Prichard
e3ce5c0ff0 Checkpoint work on the Windows server.
* Use disconnected() instead of readChannelFinished().

 * Cleanup.  There are three bidirectional pipes conceptually:
      console <-> agent
      agent <-> server
      server <-> client
   If one end of a pipe dies, start closing the other end, then clean up.
   If the console dies (e.g. because cmd.exe exits), we still want to
   collect the final console output and send it to the client.

   To help with this, in the Agent, I call GetConsoleProcessList, then
   scrapeOutput, then (potentially) disconnectFromServer.
2011-11-24 03:03:25 -08:00
Ryan Prichard
c0c261b2b5 Add simplistic console output polling in the server and feed the output
to the client.
2011-11-24 03:03:25 -08:00
Ryan Prichard
d473320350 Rename TelnetServer to TestNetServer to accurately reflect its actual
functionality.
2011-11-24 03:03:25 -08:00