= The BOINC scheduling server protocol = == Protocol nucleus == The core client communicates with scheduling servers using HTTP. The following 'nucleus' of the protocol should be considered immutable. This will allow any version of the core client to talk to any version of the scheduling server, and for the server, if needed, to tell the core client that it's out of date. The form of the request is: {{{ i686-pc-linux-gnu 1 1 ... other elements }}} The 'platform' and version number elements identify the version of the core client originating the request. The form of the reply is: {{{ [ arbitrary text ... ] [ 3600 ] [ URL ] ... other elements }}} Each '''message''' element is a message to the participant. * If the priority is 'high', the core client should try to ensure that the participant sees the message; for example, by displaying it in a popup window. It should not, however, wait for user input, as this could starve other projects. This should be reserved for situations where definitive action is required, e.g. the user must download a new version of the core client in order to continue participating in this project. * If the priority is 'low' (default) the core client should allow the participant to see the message, but should not require it. For example, it could write the message to a log file. A reply message can contain multiple message elements. A '''request_delay''' element instructs the client to not issue another request until the indicated number of seconds has elapsed. A '''redirect''' element gives the URL for a scheduling server for this project. If present, the core client should replace its list of scheduling servers for this project. The reply may contain multiple '''redirect''' elements. == Extensible protocol == The remaining protocol may evolve over time. Request elements include {{{ 0 3f7b90793a0175ad0bda68684e8bd136 1 1000 28800 localhost.localdomain 127.0.0.1 0.000000 0.000000 1 GenuineIntel Pentium 0.000000 0.000000 0.000000 0.000000 Linux 2.2.14-5.0 197427200.000000 131072.000000 178012160.000000 22108344320.000000 18332545024.000000 0.000000 0.000000 uc_wu_0 4 0.020000 The following fields are used to report errors to the server, They are not present if there is no error while downloading, computing or uploading files for this result. [ some text describing the error ] ] The state of the active_task assigned to compute this result at the time of the error [ 0 ] The exit_status of the application running the computation for the result [ 0 ] The signal raised by the application if any. [ 0 ] If the error corresponds to downloading input files for the work_unit for this result, then: input -114 If the error corresponds to uploading outfiles for this results then: output -114 the std_err output of the application, if any, goes here. uc_wu_0_0 3f7b90793a0175ad0bda68684e8bd136 54691.0000000 1000000.00000 http://localhost/hamid_cgi/test/file_upload_handler }}} Reply elements include {{{ 10 no work available 1024 ec8b7f60fa494ce65d70afa98f91f2ab08fb5fac3931a27524e0eb954d587846 29e94ce79d61f4d4bc4f9660578a06e941ca271646f11ef4d2be67f4a155e0a9 9908b6c814d08f0f59e9dc85afcc9d65f89a33d329d963e3fd359351ee25ca7f 71c3bd49a88ae609152559984b3fd7cdc4937d416a43c3357a59e7ed6cf3d30d 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000010001 . 123123 1.2 2.5 0.4 50 0.4 http://localhost.localdomain david@localdomain 123892398 10 Tahiti Sunset uc_wu_0 }}}