home · contact · privacy
Server: Simplify rule for when to update worldstate file.
[plomrogue] / src / server / run.h
index 877d2fb2b263d2b28ff73aab121661104bc3e539..07ca9029f24655a0b66a87466dc1ac512da0f4c3 100644 (file)
 
 
 
-/* Try parsing "msg" into a server or player command to run. Player commands are
- * are recorded into the record file at world.path_record if "do_record" is set.
+/* Try parsing "msg" into a command to apply, and apply it. Record commands to
+ * the file at world.path_record if "do_record" is set.
  */
 extern void obey_msg(char * msg, uint8_t do_record);
 
 /* 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.
- * In play mode, processes incomming commands via obey_msg().
+ * 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.
  */
 extern uint8_t io_loop();