]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.h
* do linebuffered/non-blocking reads from http requests
[citadel.git] / webcit / webserver.h
index c3588ffad1455f7f2beffe2dc07d8a1b524f80b8..82b4a51dfd690a6e574c508e0c5056e9b9bc1813 100644 (file)
@@ -1,6 +1,15 @@
 /* $Id$ */
-int client_gets(int sock, char *buf);
-int client_read(int sock, char *buf, int bytes);
-int client_read_to(int sock, char *buf, int bytes, int timeout);
-ssize_t client_write(const void *buf, size_t count);
+
+extern char *static_dirs[PATH_MAX];          /**< Web representation */
+extern char *static_content_dirs[PATH_MAX];  /**< Disk representation */
+extern int ndirs;
+extern char socket_dir[PATH_MAX];
+
+int ClientGetLine(int *sock, StrBuf *Target, StrBuf *CLineBuf);
+int client_getln(int *sock, char *buf, int bufsiz);
+int client_read(int *sock, StrBuf *Target, StrBuf *buf, int bytes);
+int client_read_to(int *sock, StrBuf *Target, StrBuf *Buf, int bytes, int timeout);
 int lprintf(int loglevel, const char *format, ...);
+void wc_backtrace(void);
+void ShutDownWebcit(void);
+void shutdown_ssl(void);