Subversion Repositories Code-Repo

Rev

Blame | Last modification | View Log | RSS feed

Group members: Kevin Lee (klee482)

Sysstatd is a simple webserver that allows a client to send commands
and pull data from the webserver. The code for binding a TCP socket
that listens for clients is seperated from the HTTP parsing code. This
allows the webserver to easily be reimplemented to connect to a relay 
server instead of hosting. For each connection, the processing is sent 
to a thread pool that parses the HTTP request that the client sends. 
This allows the webserver to server multiple clients at once. The 
webserver also keeps the connection open, thus it implements persistant 
connections as according to HTTP/1.1. Within each processing thread, 
the data header is checked and the specified action is taken. The 
webserver supports querying for files, loadavg, and meminfo. It also 
provides an interface for calling a runloop, allocanon, and freeanon 
function. 404s are returned for unknown queries.