Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
141 Kevin 1
Group members: Kevin Lee (klee482)
2
 
3
Sysstatd is a simple webserver that allows a client to send commands
4
and pull data from the webserver. The code for binding a TCP socket
5
that listens for clients is seperated from the HTTP parsing code. This
6
allows the webserver to easily be reimplemented to connect to a relay 
7
server instead of hosting. For each connection, the processing is sent 
8
to a thread pool that parses the HTTP request that the client sends. 
9
This allows the webserver to server multiple clients at once. The 
10
webserver also keeps the connection open, thus it implements persistant 
11
connections as according to HTTP/1.1. Within each processing thread, 
12
the data header is checked and the specified action is taken. The 
13
webserver supports querying for files, loadavg, and meminfo. It also 
14
provides an interface for calling a runloop, allocanon, and freeanon 
15
function. 404s are returned for unknown queries.