aboutsummaryrefslogtreecommitdiff
path: root/src/Sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Sockets.c')
-rw-r--r--src/Sockets.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/Sockets.c b/src/Sockets.c
index 122daa5..2c9b97e 100644
--- a/src/Sockets.c
+++ b/src/Sockets.c
@@ -227,6 +227,54 @@ int HTTP_Poll(cGH *cctkGH, long sec, long usec)
return 0;
}
+ /*@@
+ @routine HTTP_Write
+ @date Fri Sep 15 18:47:41 2000
+ @author Tom Goodale
+ @desc
+ Writes part or all of an HTTP reply.
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+int HTTP_Write(httpRequest *request, const char *buffer, size_t count)
+{
+ int retval;
+
+ /* Currently don't do anything fancy. */
+ retval = write(request->filedes, buffer, count);
+
+ return retval;
+}
+
+ /*@@
+ @routine HTTP_Read
+ @date Mon Sep 18 10:14:03 2000
+ @author Tom Goodale
+ @desc
+ Reads part or all of an HTTP request.
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+int HTTP_Read(httpRequest *request, const char *buffer, size_t count)
+{
+ int retval;
+
+ /* Currently don't do anything fancy. */
+ retval = read(request->filedes, buffer, count);
+
+ return retval;
+}
+
/********************************************************************
********************* Local Routines *************************
********************************************************************/