Commit Graph

8 Commits

Author SHA1 Message Date
Ryan Prichard
b2f15c8f27 Fix terminal output bugs in the TestNet client.
* If the client was unable to write any data, write would return -1 with
   errno==EAGAIN, and the client would assert fail.

 * Apparently I thought that continue would jump to the start of the
   do-while(0) loop.  Replace the continue/do-while(0) with a
   did_something flag.

While I'm at it, replace a few hard-coded constants with constants.
2011-11-24 03:03:25 -08:00
Ryan Prichard
0bb71ee53c In the Unix client, send a resize escape sequence on startup and when the
terminal window is resized.
2011-11-24 03:03:25 -08:00
Ryan Prichard
b491fd6378 Add a UnixSignalHandler class. It emits a Qt signal when a Unix signal is
handled.

Use the UnixSignalHandler to detect terminal resizing.  The client doesn't
do anything with the terminal size yet.  It should send the size to the
server.
2011-11-24 03:03:25 -08:00
Ryan Prichard
af5a742e57 Two Unix client changes:
* Use disconnected instead of readChannelFinished.

 * Fix a serious bug in doServerToClient.
2011-11-24 03:03:25 -08:00
Ryan Prichard
f9b713dc57 In the Unix client, stop the program when the read channel finishes. 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
73bd43d051 Implement the Unix TestNet client. 2011-11-24 03:03:25 -08:00
Ryan Prichard
f70b2bd772 Add a mostly empty TestNetClient project. 2011-11-24 03:03:25 -08:00