QcServerConsole Class
The server console of qtcraft-headless –console (decision E-247), a step towards the dedicated server: every line of standard input is a server command (the leading '/' is optional), its replies go to standard output as English text. /stop or the end of the input ends the process (the world is saved); a service without input (–no-eof-stop) keeps running at the end of the input. More...
| Header: | #include <headless/QcServerConsole.h> |
| Inherits: | QObject |
Public Types
Public Functions
| void | start() |
Signals
| void | finished() |
Detailed Description
The commands run in the server's thread; this object only hands lines over.
Member Type Documentation
[alias] QcServerConsole::Runner
Runs one console line and returns the replies (QcLocalServerHost::runConsoleCommand).
Member Function Documentation
[signal] void QcServerConsole::finished()
End of input (when it stops the server): the owner stops the server.
void QcServerConsole::start()
Prints the console's greeting and starts reading standard input.