Added const correctness to server and client objects