2 int client_gets(int sock, char *buf);
3 int client_read(int sock, char *buf, int bytes);
4 int client_read_to(int sock, char *buf, int bytes, int timeout);
5 ssize_t client_write(const void *buf, size_t count);
6 int lprintf(int loglevel, const char *format, ...);