Refactored Server::get_ready_to_read()
Some refactoring