home · contact · privacy
Re-wrote large parts of the server client architecture. No more fifo.
[plomrogue] / src / server / io.h
index 78cb068279d4899490c5a1f1dcb267f7ac90eb57..02f8e9017d2dadc7c2bc6b6581f6b8a3f0d4193c 100644 (file)
@@ -1,7 +1,7 @@
 /* io.h:
  *
- * Communication of the server with the outside world via input fifo and output
- * file.
+ * Communication of the server with the outside world and its client via input,
+ * output and world state files.
  */
 
 #ifndef IO_H
@@ -11,8 +11,9 @@
 
 /* Return single \0-terminated string read from input queue (world.queue); or,
  * if queue is empty and world.turn is unequal world.last_update_turn, update
- * output file at world.path_out (and update world.last_update_turn), then read
- * file at world.path_in for the next load of bytes to put onto the input queue.
+ * world state file at world.path_worldstate (and update world.last_update_turn
+ * and write a single dot line to output file at world.path_out), then read file
+ * at world.path_in for the next load of bytes to put onto the input queue.
  *
  * Reading the file at world.path_in may put many \0-terminated strings on the
  * queue at once. Successive calls of io_round() will make these available one