X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fserver%2Frun.h;h=26a0c2f7108ae8390897a8e0301ccd173f0d0b37;hb=d4ae3915f817fa25f938c5ab47cea2823ba5aaa9;hp=7436cb7429982054d42f60ba9dcbe2dd907f8df7;hpb=28b8b4234e395c3fdc4800e5cfb3dcd70a15cadf;p=plomrogue diff --git a/src/server/run.h b/src/server/run.h index 7436cb7..26a0c2f 100644 --- a/src/server/run.h +++ b/src/server/run.h @@ -14,6 +14,9 @@ +/* Append "answer" to server output file, with instant fflush() if "flush". */ +extern void send_to_outfile(char * answer, uint8_t flush); + /* 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. @@ -27,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();