#include <client_state.h>

| CLIENT_STATE::CLIENT_STATE | ( | ) |

| CLIENT_STATE::CLIENT_STATE | ( | ) |
| void CLIENT_STATE::new_version_check | ( | ) |


| void CLIENT_STATE::all_projects_list_check | ( | ) |


| void CLIENT_STATE::show_host_info | ( | ) |


| void CLIENT_STATE::show_proxy_info | ( | ) |


| int CLIENT_STATE::init | ( | ) |


| bool CLIENT_STATE::poll_slow_events | ( | ) |
Never blocks. Returns true if it actually did something, in which case it should be called again immediately.


| void CLIENT_STATE::do_io_or_sleep | ( | double | dt | ) |


| bool CLIENT_STATE::time_to_exit | ( | ) |


| PROJECT * CLIENT_STATE::lookup_project | ( | const char * | master_url | ) |





| APP_VERSION * CLIENT_STATE::lookup_app_version | ( | APP * | app, | |
| char * | platform, | |||
| int | ver, | |||
| char * | plan_class | |||
| ) |

| int CLIENT_STATE::detach_project | ( | PROJECT * | project | ) |


| int CLIENT_STATE::report_result_error | ( | RESULT & | res, | |
| const char * | format, | |||
| ... | ||||
| ) |


| int CLIENT_STATE::reset_project | ( | PROJECT * | project, | |
| bool | detaching | |||
| ) |


| double CLIENT_STATE::work_buf_min | ( | ) | [inline] |

| double CLIENT_STATE::work_buf_additional | ( | ) | [inline] |

| double CLIENT_STATE::work_buf_total | ( | ) | [inline] |


| void CLIENT_STATE::request_enforce_schedule | ( | const char * | where | ) |


| void CLIENT_STATE::request_schedule_cpus | ( | const char * | where | ) |
Check for reschedule CPUs ASAP.
Called when:


| int CLIENT_STATE::add_project | ( | const char * | master_url, | |
| const char * | authenticator, | |||
| const char * | project_name, | |||
| bool | attached_via_acct_mgr | |||
| ) |


| double CLIENT_STATE::runnable_resource_share | ( | ) |


| void CLIENT_STATE::request_work_fetch | ( | const char * | where | ) |
| int CLIENT_STATE::quit_activities | ( | ) |


| void CLIENT_STATE::set_ncpus | ( | ) |


| double CLIENT_STATE::estimate_cpu_time | ( | WORKUNIT & | ) |
| double CLIENT_STATE::get_fraction_done | ( | RESULT * | result | ) |



| ACTIVE_TASK * CLIENT_STATE::lookup_active_task_by_result | ( | RESULT * | rep | ) |

| ACTIVE_TASK * CLIENT_STATE::get_task | ( | RESULT * | rp | ) |

| bool CLIENT_STATE::should_run_cpu_benchmarks | ( | ) |

| void CLIENT_STATE::start_cpu_benchmarks | ( | ) |


| bool CLIENT_STATE::cpu_benchmarks_poll | ( | ) |


| void CLIENT_STATE::abort_cpu_benchmarks | ( | ) |


| bool CLIENT_STATE::are_cpu_benchmarks_running | ( | ) |

| bool CLIENT_STATE::cpu_benchmarks_done | ( | ) |

| void CLIENT_STATE::cpu_benchmarks_set_defaults | ( | ) |

| void CLIENT_STATE::print_benchmark_results | ( | ) |


| void CLIENT_STATE::parse_cmdline | ( | int | argc, | |
| char ** | argv | |||
| ) |

| void CLIENT_STATE::parse_env_vars | ( | ) |


| void CLIENT_STATE::do_cmdline_actions | ( | ) |


| void CLIENT_STATE::check_file_existence | ( | ) |


| bool CLIENT_STATE::start_new_file_xfer | ( | PERS_FILE_XFER & | pfx | ) |

| const char * CLIENT_STATE::get_primary_platform | ( | ) |

| int CLIENT_STATE::project_disk_usage | ( | PROJECT * | p, | |
| double & | size | |||
| ) |


| int CLIENT_STATE::total_disk_usage | ( | double & | size | ) |
returns the total disk usage of BOINC on this host


| double CLIENT_STATE::allowed_disk_usage | ( | ) |

| int CLIENT_STATE::allowed_project_disk_usage | ( | double & | ) |
| int CLIENT_STATE::suspend_tasks | ( | int | reason | ) |


| int CLIENT_STATE::resume_tasks | ( | int | reason = 0 |
) |


| int CLIENT_STATE::suspend_network | ( | int | reason | ) |


| int CLIENT_STATE::resume_network | ( | ) |


| void CLIENT_STATE::read_global_prefs | ( | ) |


| int CLIENT_STATE::save_global_prefs | ( | char * | prefs, | |
| char * | url, | |||
| char * | sched | |||
| ) |


| double CLIENT_STATE::available_ram | ( | ) |

| double CLIENT_STATE::max_available_ram | ( | ) |

| int CLIENT_STATE::make_scheduler_request | ( | PROJECT * | p | ) |


| int CLIENT_STATE::handle_scheduler_reply | ( | PROJECT * | project, | |
| char * | scheduler_url, | |||
| int & | nresults | |||
| ) |


| void CLIENT_STATE::set_client_state_dirty | ( | const char * | source | ) |


| int CLIENT_STATE::parse_state_file | ( | ) |


| int CLIENT_STATE::write_state | ( | MIOFILE & | f | ) |


| int CLIENT_STATE::write_state_file | ( | ) |


| int CLIENT_STATE::write_state_file_if_needed | ( | ) |


| void CLIENT_STATE::check_anonymous | ( | ) |


| int CLIENT_STATE::parse_app_info | ( | PROJECT * | p, | |
| FILE * | in | |||
| ) |


| int CLIENT_STATE::write_state_gui | ( | MIOFILE & | f | ) |


| int CLIENT_STATE::write_file_transfers_gui | ( | MIOFILE & | f | ) |


| int CLIENT_STATE::write_tasks_gui | ( | MIOFILE & | f | ) |


| int CLIENT_STATE::handle_trickle_down | ( | PROJECT * | project, | |
| FILE * | in | |||
| ) |


| void CLIENT_STATE::check_project_pointer | ( | PROJECT * | p | ) |

| void CLIENT_STATE::check_app_pointer | ( | APP * | p | ) |

| void CLIENT_STATE::check_file_info_pointer | ( | FILE_INFO * | p | ) |

| void CLIENT_STATE::check_app_version_pointer | ( | APP_VERSION * | p | ) |

| void CLIENT_STATE::check_workunit_pointer | ( | WORKUNIT * | p | ) |

| void CLIENT_STATE::check_result_pointer | ( | RESULT * | p | ) |

| void CLIENT_STATE::check_pers_file_xfer_pointer | ( | PERS_FILE_XFER * | p | ) |

| void CLIENT_STATE::check_file_xfer_pointer | ( | FILE_XFER * | p | ) |

| void CLIENT_STATE::check_app | ( | APP & | p | ) |


| void CLIENT_STATE::check_file_info | ( | FILE_INFO & | p | ) |


| void CLIENT_STATE::check_file_ref | ( | FILE_REF & | p | ) |


| void CLIENT_STATE::check_app_version | ( | APP_VERSION & | p | ) |


| void CLIENT_STATE::check_workunit | ( | WORKUNIT & | p | ) |


| void CLIENT_STATE::check_result | ( | RESULT & | p | ) |


| void CLIENT_STATE::check_active_task | ( | ACTIVE_TASK & | p | ) |


| void CLIENT_STATE::check_pers_file_xfer | ( | PERS_FILE_XFER & | p | ) |


| void CLIENT_STATE::check_file_xfer | ( | FILE_XFER & | p | ) |


| void CLIENT_STATE::check_all | ( | ) |

| void CLIENT_STATE::free_mem | ( | ) |
| int CLIENT_STATE::proj_min_results | ( | PROJECT * | p, | |
| double | subset_resource_share | |||
| ) |

| void CLIENT_STATE::check_project_timeout | ( | ) |


| PROJECT * CLIENT_STATE::next_project_master_pending | ( | ) |


| PROJECT * CLIENT_STATE::next_project_sched_rpc_pending | ( | ) |

| PROJECT * CLIENT_STATE::next_project_trickle_up_pending | ( | ) |

| PROJECT * CLIENT_STATE::next_project_need_work | ( | ) |


| PROJECT * CLIENT_STATE::find_project_with_overdue_results | ( | ) |

| double CLIENT_STATE::overall_cpu_frac | ( | ) |

| double CLIENT_STATE::time_until_work_done | ( | PROJECT * | p, | |
| int | k, | |||
| double | subset_resource_share | |||
| ) |


| bool CLIENT_STATE::compute_work_requests | ( | ) |


| void CLIENT_STATE::scale_duration_correction_factors | ( | double | factor | ) |


| void CLIENT_STATE::generate_new_host_cpid | ( | ) |


| void CLIENT_STATE::compute_nuploading_results | ( | ) |

| double CLIENT_STATE::nearly_runnable_resource_share | ( | ) |
| double CLIENT_STATE::total_resource_share | ( | ) |
| double CLIENT_STATE::overall_cpu_frac | ( | ) | [inline] |
| bool CLIENT_STATE::rr_simulation | ( | ) |
| double CLIENT_STATE::work_buf_min | ( | ) | [inline] |
| double CLIENT_STATE::work_buf_additional | ( | ) | [inline] |
| void CLIENT_STATE::html_start | ( | bool | show_prev | ) |

| void CLIENT_STATE::html_rec | ( | ) |


| void CLIENT_STATE::html_end | ( | bool | show_next | ) |


| double CLIENT_STATE::share_violation | ( | ) |

| double CLIENT_STATE::monotony | ( | ) |


| ACTIVE_TASK* CLIENT_STATE::lookup_active_task_by_result | ( | RESULT * | ) |
| int CLIENT_STATE::report_result_error | ( | RESULT & | , | |
| const char * | format, | |||
| ... | ||||
| ) |
| double CLIENT_STATE::available_ram | ( | ) |
| double CLIENT_STATE::max_available_ram | ( | ) |
| void CLIENT_STATE::set_client_state_dirty | ( | const char * | ) |
| double CLIENT_STATE::work_buf_min | ( | ) | [inline] |
| double CLIENT_STATE::work_buf_additional | ( | ) | [inline] |
| double CLIENT_STATE::work_buf_total | ( | ) | [inline] |

| void CLIENT_STATE::request_enforce_schedule | ( | const char * | ) |
| void CLIENT_STATE::request_schedule_cpus | ( | const char * | ) |
| bool CLIENT_STATE::sufficient_coprocs | ( | APP_VERSION & | ) |
| void CLIENT_STATE::reserve_coprocs | ( | APP_VERSION & | ) |
| void CLIENT_STATE::free_coprocs | ( | APP_VERSION & | ) |
| double CLIENT_STATE::runnable_resource_share | ( | ) |
| void CLIENT_STATE::request_work_fetch | ( | const char * | ) |
| int CLIENT_STATE::quit_activities | ( | ) |
| void CLIENT_STATE::set_ncpus | ( | ) |
| double CLIENT_STATE::estimate_cpu_time | ( | WORKUNIT & | ) |
| double CLIENT_STATE::get_fraction_done | ( | RESULT * | result | ) |
| ACTIVE_TASK* CLIENT_STATE::get_task | ( | RESULT * | ) |
| int CLIENT_STATE::proj_min_results | ( | PROJECT * | , | |
| double | ||||
| ) |
| void CLIENT_STATE::check_project_timeout | ( | ) |
| PROJECT* CLIENT_STATE::next_project_master_pending | ( | ) |
| PROJECT* CLIENT_STATE::next_project_sched_rpc_pending | ( | ) |
| PROJECT* CLIENT_STATE::next_project_trickle_up_pending | ( | ) |
| PROJECT* CLIENT_STATE::next_project_need_work | ( | ) |
| PROJECT* CLIENT_STATE::find_project_with_overdue_results | ( | ) |
| double CLIENT_STATE::overall_cpu_frac | ( | ) |
| double CLIENT_STATE::time_until_work_done | ( | PROJECT * | , | |
| int | , | |||
| double | ||||
| ) |
| bool CLIENT_STATE::compute_work_requests | ( | ) |
| void CLIENT_STATE::scale_duration_correction_factors | ( | double | ) |
| void CLIENT_STATE::generate_new_host_cpid | ( | ) |
| void CLIENT_STATE::compute_nuploading_results | ( | ) |
| void CLIENT_STATE::make_job | ( | SIM_PROJECT * | p, | |
| WORKUNIT * | wup, | |||
| RESULT * | rp | |||
| ) |


| void CLIENT_STATE::handle_completed_results | ( | ) |

| void CLIENT_STATE::get_workload | ( | vector< IP_RESULT > & | ip_results | ) |


| int CLIENT_STATE::parse_projects | ( | char * | name | ) |


| int CLIENT_STATE::parse_host | ( | ch |