The first two lines of the server code do all the work. I found these lines by reading through the WPILib code. The remaining lines just put the main thread to sleep while the NetworkTable handles communications in another thread.
I highly recommend reading through the WPILib source code. It should be installed in your home directory under sunspotfrcsdk/lib/wpilibj.src.zip
The only documentation I know of is at:
http://wpilib.screenstepslive.com/s/...client-pc-side