Example Sensor Server for PlanetLab
Scott C. Karlin   (scott@cs.princeton.edu)



Building, Installing, and Using the Example Sensor Server
---------------------------------------------------------

My libraries, and the applications I write that use the libraries, expect
that my libraries live in a common directory and that LIBSROOT points
there.  Make sure LIBSROOT is defined before running "make".

$ export LIBSROOT="$HOME/Software/Libs"

To build and "install" the library:

$ cd Libhttpe
$ make install

Note that "make install" will not touch anything outside the local
directory tree.


To test the example sensor server, run it with the port number
for the server:

$ ./exampleSS -p 34543


Now, on the localhost, point a browser (or use curl) at it and see the
results:

   curl -D - -v http://127.0.0.1:34543/
   curl -D - -v http://127.0.0.1:34543/README
   curl -D - -v http://127.0.0.1:34543/uptime
   curl -D - -v http://127.0.0.1:34543/uptime/README
   curl -D - -v http://127.0.0.1:34543/idletime
   curl -D - -v http://127.0.0.1:34543/idletime/README
   curl -D - -v http://127.0.0.1:34543/counter
   curl -D - -v http://127.0.0.1:34543/counter/README

With the -e option, the server binds to INADDR_ANY instead of 127.0.0.1.
