00001 /* $Id: webserver.h 5147 2007-05-08 15:36:22Z ajc $ */ 00002 00003 extern char *static_dirs[PATH_MAX]; 00004 extern char *static_content_dirs[PATH_MAX]; 00005 extern int ndirs; 00006 extern char socket_dir[PATH_MAX]; 00007 00008 int client_getln(int sock, char *buf, int bufsiz); 00009 int client_read(int sock, char *buf, int bytes); 00010 int client_read_to(int sock, char *buf, int bytes, int timeout); 00011 ssize_t client_write(const void *buf, size_t count); 00012 int lprintf(int loglevel, const char *format, ...);