aboutsummaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http.c b/src/http.c
index a428233..d97d779 100644
--- a/src/http.c
+++ b/src/http.c
@@ -77,7 +77,7 @@ static void DestroyArgument(httpArg *argument);
@endhistory
@@*/
-int HTTP_ReadFromClient(cGH *cctkGH, int filedes)
+int HTTP_ReadFromClient(cGH *cctkGH, void *connection)
{
int retval;
int keepalive;
@@ -87,14 +87,14 @@ int HTTP_ReadFromClient(cGH *cctkGH, int filedes)
InitialiseRequest(&request);
- request.filedes = filedes;
+ request.connection = connection;
nbytes = HTTP_Read(&request, buffer, MAXMSG);
if (nbytes < 0)
{
/* Read error. */
- perror ("read");
+ perror ("HTTP_Read");
CCTK_Abort(cctkGH, EXIT_FAILURE);
}
else if (nbytes == 0)
@@ -669,7 +669,7 @@ static int InitialiseRequest(httpRequest *request)
/* Initialise the private data */
- request->filedes = -1;
+ request->connection = NULL;
request->headers = NULL;
request->arguments = NULL;