Functions

request.h File Reference

Header for the request-handling module. More...

#include <stdio.h>

Go to the source code of this file.

Functions

int initRequestHandler (void)
 Initializes the request-handling module.
int handleRequest (FILE *client)
 Handles requests coming from a client.

Detailed Description

Header for the request-handling module.


Function Documentation

int handleRequest ( FILE *  client  ) 

Handles requests coming from a client.

This function does the actual work of communicating with the client. It should be called from the connection-handling module.

Parameters:
client Client-connection stream.
Returns:
0 on success, -1 on error.
int initRequestHandler ( void   ) 

Initializes the request-handling module.

Note:
This function must be invoked after parseArgs().
Returns:
0 on success, -1 on error.
 All Files Functions