const warning fix and Client::HandlePacket refactoring.