X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fserver%2Frun.h;h=bd13d1dde788d7a370d0c08aaeca1888167280eb;hb=2b2a1e0169b3a863fd87b679d789a4e2b789eb67;hp=6b823c4b713d27f688e30924a217af3dc816f530;hpb=c31d3a8d3f993a2cfcc8c5e438283e3a693d5b27;p=plomrogue
diff --git a/src/server/run.h b/src/server/run.h
index 6b823c4..bd13d1d 100644
--- a/src/server/run.h
+++ b/src/server/run.h
@@ -1,4 +1,8 @@
/* src/server/run.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* Process commands and act on them. Stuff that furthers the state of the game.
*/
@@ -10,6 +14,9 @@
+/* Append "answer" to server output file, with instant fflush(). */
+extern void send_to_outfile(char * answer);
+
/* Record save and record file data. Both are only written if "force" is set, or
* on the first run with unset "force", or if 15 seconds have passed since the
* last file writing. "msg" is appended to the record file if it is set.
@@ -23,12 +30,11 @@ extern void record(char * msg, uint8_t force);
*/
extern void obey_msg(char * msg, uint8_t do_record, uint8_t do_verbose);
-/* Loop for receiving commands via io_round() and acting on them. Exits with 1
+/* Loop for receiving commands via io_round(), and acting on them. Exits with 1
* on "QUIT" command. In replay mode, exits with 0 on each non-"QUIT" command.
- * Writes a "PONG" line to server output file on "PING" command. In play mode,
- * processes further incomming commands via obey_msg(). Compares the first line
- * of the server out file with world.server_test to ensure that the current
- * server process has not been superseded by a new one.
+ * In play mode, processes incomming god and player commands via obey_msg().
+ * Compares the first line of the server out file with world.server_test to
+ * ensure that the current server process has not been superseded by a new one.
*/
extern uint8_t io_loop();