Chat server and client implementation - With self defined protocol