Set `connected` indicator variable.