- in textfield_width(), handle too large lines somehow
-- use select() polling where possible for server-client communication
-
- may err_line store the processed line internally as it does the line count
SERVER:
/* src/server/io.c */
+#define _BSD_SOURCE /* usleep() */
#include "io.h"
#include <errno.h> /* global errno */
#include <limits.h> /* PIPE_BUF */
#include <string.h> /* strlen(), memcpy() */
#include <sys/types.h> /* time_t */
#include <time.h> /* time() */
+#include <unistd.h> /* usleep() */
#include "../common/err_try_fgets.h" /* err_line() */
#include "../common/readwrite.h" /* try_fopen(), try_fclose_unlink_rename(),
* try_fwrite(), try_fputc(), try_fgetc()
int test;
while (EOF == (test = try_fgetc(world.file_in, f_name)))
{
+ usleep(33);
if (time(0) > now + wait_seconds)
{
return;