For this tutorial, we put both the server and the client main code into one single program. Depending on the arguments passed, it runs as a server or as a client program.
Were done with the client, but need some more for the server: A service handler implementaion.
As the name suggests, the service handler implements the Thrift service on the server side. The code to achieve this is as follows: