3 * Communication of the client with the server (by reading and writing files)
4 * and the user (by writing to the screen and reading keypresses).
12 /* Try sending "msg" to the server by writing it to the file at
13 * world.path_server_in. Try to open it 2^16 times before giving up. After
14 * opening, try to write to it 2^16 times before giving up.
16 extern void try_send(char * msg);
18 /* Keep checking for user input and a changed server out file. Update client's
19 * world representation on out file changes. Manipulate the client and send
20 * commands to server based on the user input as interpreted by the control.h
21 * library. On each change / activity, re-draw the windows with draw_all_wins().
22 * When the loop ends regularly (due to the user sending a quit command), return
23 * an appropriate quit message to write to stdout when the client winds down.
24 * Also call reset_windows() on receiving a SIGWINCH.
26 extern char * io_loop();