Added the keep alive functionality to server and client.
Server listens to port 12340. Timeout is set to 15 seconds.