Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /home/boincnew/public_html/boinc-wiki.info/w/includes/StubObject.php on line 58
Uploading a File From a Client Host - Unofficial BOINC Wiki

Uploading a File From a Client Host

From Unofficial BOINC Wiki

Jump to: navigation, search

A persistent file can be retrieved from a specific host. This can be done using the function

get_file(int host_id, const char* file_name)

or the command line program

get_file -host_id X -file_name Y

This program must be run in the project's root directory.

The function get_file() creates a result with a name of the form:

get_FILENAME_HOSTID_TIME

Example: get_test.mpg_34_123456789 is a result representing the upload of test.mpg from host number 34 at time 1234567891.

An Upload Message is created for the specific Host and added to the msg_to_host table in the database. This message instructs the BOINC Daemon to upload the file and acknowledge a successful upload. The upload message included in the next RPC Reply to the host. The message has the form:

 <app>
    <name>FILE_MOVER</name>
 </app>
 <app_version>
    <app_name>FILE_MOVER</app_name>
    <version_num>BOINC_MAJOR_VERSION</version_num>
 </app_version>
 <file_info>
    <name>file_name</name>
    <url>upload_dir</url>
    <max_nbytes>1e10</max_nbytes>
    <upload_when_present/>
 </file_info>
    RESULT_XML
 <workunit>
    <name>result.name</name>
    <app_name>FILE_MOVER</app_name>
 </workunit>

Include

<msg_to_host/>

in config.xml. Currently

<ignore_upload_certificates/>

needs to be included as there is no way to send Upload Certificates with these files.

[edit] UCB Source

[edit] Copyright ©

  • 2005 University of California
  • 2005 Paul D. Buck

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.

Personal tools
RSS Feeds
BOINC Wiki RSS feeds RSS Feeds
Powered by BOINC!
Powered by BOINC