Update to server.c to include code for TCP socket