Change method Connection::waitForServer() from protected to public