]> code.citadel.org Git - citadel.git/blobdiff - webcit/serv_func.c
* Rewrote the HTTP engine and application coupling to run in a worker thread
[citadel.git] / webcit / serv_func.c
index 686dcc1bbe47ce01a1d3437278f500cfd1056932..174172a8f53e60cd4a65b156d007c9fa8ceeb35e 100644 (file)
@@ -1,32 +1,51 @@
 /* $Id$ */
 
+
+
 #include <ctype.h>
 #include <stdlib.h>
-#include <string.h>
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 #include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/socket.h>
+#include <sys/time.h>
+#include <limits.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <string.h>
+#include <pwd.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <pthread.h>
+#include <signal.h>
 #include "webcit.h"
-#include "child.h"
+
+
+
+
+
+
 
 struct serv_info serv_info;
 
 /*
- * get info about the server we've connected to
+ * get info about the server we've WC->connected to
  */
-void get_serv_info(char *browser_host)
+void get_serv_info(char *browser_host, char *user_agent)
 {
        char buf[256];
        int a;
 
        serv_printf("IDEN %d|%d|%d|%s|%s",
-                   DEVELOPER_ID,
-                   CLIENT_ID,
-                   CLIENT_VERSION,
-                   SERVER,
-                   browser_host
-           );
+               DEVELOPER_ID,
+               CLIENT_ID,
+               CLIENT_VERSION,
+               user_agent,
+               browser_host
+       );
        serv_gets(buf);
 
        serv_puts("INFO");