Blame | Last modification | View Log | Download | RSS feed
Group members: Kevin Lee (klee482)Sysstatd is a simple webserver that allows a client to send commandsand pull data from the webserver. The code for binding a TCP socketthat listens for clients is seperated from the HTTP parsing code. Thisallows the webserver to easily be reimplemented to connect to a relayserver instead of hosting. For each connection, the processing is sentto a thread pool that parses the HTTP request that the client sends.This allows the webserver to server multiple clients at once. Thewebserver also keeps the connection open, thus it implements persistantconnections as according to HTTP/1.1. Within each processing thread,the data header is checked and the specified action is taken. Thewebserver supports querying for files, loadavg, and meminfo. It alsoprovides an interface for calling a runloop, allocanon, and freeanonfunction. 404s are returned for unknown queries.