aboutsummaryrefslogtreecommitdiff
path: root/src/httpd.h
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-14 19:09:58 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-14 19:09:58 +0000
commit37a1b7289e02a794269bf1ab248da152d4c80648 (patch)
treecc7d14cc7c672fabb580671608355064ac526213 /src/httpd.h
parent68d3b18fee8e7331fd47f85b396a0fe25634e0d6 (diff)
Initial version of C http thorn. There are still a fair number of things on
my to-do list, but it is fairly usable now as far as functionality is concerned. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@2 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/httpd.h')
-rw-r--r--src/httpd.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/httpd.h b/src/httpd.h
new file mode 100644
index 0000000..50d0eb2
--- /dev/null
+++ b/src/httpd.h
@@ -0,0 +1,37 @@
+ /*@@
+ @header httpd.h
+ @date Wed Sep 13 20:15:23 2000
+ @author Tom Goodale
+ @desc
+
+ @enddesc
+ @version $Header$
+ @@*/
+
+#include "http_Request.h"
+
+#ifndef __HTTP_H__
+#define __HTTP_H__ 1
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+int HTTP_ReadFromClient (cGH *cctkGH, int filedes);
+
+
+int HTTP_SetupServer(int port, int queue_size);
+int HTTP_ShutdownServer(void);
+
+int HTTP_Poll(cGH *cctkGH, long sec, long usec);
+
+/* Request stuff */
+int HTTP_RequestGET(cGH *cctkGH, httpRequest *request);
+int HTTP_RequestUnsupported(cGH *cctkGH, httpRequest *request);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __HTTP_H__ */