Finish and fix server.  Call rt function calls in temporary main function for both client and server.