| | 1 | = Core client: file structure = |
| | 2 | |
| | 3 | The core client runs in a '''BOINC home directory'''. It creates and uses the following files and directories within the home directory: |
| | 4 | |
| | 5 | |
| | 6 | * '''prefs.xml''': The user's general preferences; see below. |
| | 7 | * '''client_state.xml''' describes of the files, application, workunits and results present on this client. |
| | 8 | * '''Account files''' describes the participant's account in each subscribed project, including the resource share and project-specific preferences. It contains no host-specific information. The name of the account file is '''account_PROJECT.xml''', where PROJECT is an encoded version of the project's master URL. |
| | 9 | * A directory '''projects''', which contains a '''project directory''' for each subscribed project. The name of a project directory is an encoded version of the project's master URL. The project directory contains all files (inputs, outputs, executables) related to the project. |
| | 10 | * '''slots''': this directory contains one subdirectory for each result in progress. The subdirectories are named 0, 1, ... N-1. |
| | 11 | |
| | 12 | Each result executes in particular slot directory. The core client creates 'soft link' files in the slot directory, linking to the corresponding files in the project directory. |
| | 13 | |
| | 14 | |
| | 15 | == Format of account files == |
| | 16 | The format of an account file is as follows: |
| | 17 | {{{ |
| | 18 | |
| | 19 | <account> |
| | 20 | <master_url>http://www.myproject.com/</master_url> |
| | 21 | <authenticator>3f7b90793a0175ad0bda68684e8bd136</authenticator> |
| | 22 | [ <project_name>...</project_name> ] |
| | 23 | [ <tentative/> ] |
| | 24 | <project_preferences> |
| | 25 | <resource_share>1</resource_share> |
| | 26 | <project_specific> |
| | 27 | ... |
| | 28 | </project_specific> |
| | 29 | [ <venue>...</venue> ] |
| | 30 | </project_preferences> |
| | 31 | </account> |
| | 32 | |
| | 33 | }}} |
| | 34 | The <project_preferences> field is the 'project_prefs' field of the user database record. |
| | 35 | == Format of prefs.xml == |
| | 36 | This format of prefs.xml is as follows: |
| | 37 | |
| | 38 | |
| | 39 | {{{ |
| | 40 | <preferences> |
| | 41 | <prefs_mod_time>1030128387</prefs_mod_time> |
| | 42 | <from_project>http://www.myproject.com/</from_project> |
| | 43 | <from_scheduler>http://server3.myproject.com/cgi-bin/scheduler_cgi</from_scheduler> |
| | 44 | <mod_time>2</mod_time> |
| | 45 | <high_water_days>2</high_water_days> |
| | 46 | <low_water_days>1</low_water_days> |
| | 47 | </preferences> |
| | 48 | |
| | 49 | XXX this is not complete |
| | 50 | }}} |