]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.h
* do linebuffered/non-blocking reads from http requests
[citadel.git] / webcit / webserver.h
index 47bb4f860dc2009a946cbbd454dcdd2d25ddcc71..82b4a51dfd690a6e574c508e0c5056e9b9bc1813 100644 (file)
@@ -5,9 +5,11 @@ extern char *static_content_dirs[PATH_MAX];  /**< Disk representation */
 extern int ndirs;
 extern char socket_dir[PATH_MAX];
 
-int client_getln(int sock, char *buf, int bufsiz);
-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);
+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);