ファイルの送信 |
|
send_file(int host_id, const char* file_name, int priority, long int exp_date)
を使うか、あるいは、下記のコマンドラインプログラムを使います。
send_file -host_id X -file_name Y -priority Z -days_exp N
send_file 機能は、リザルトを1つ作り、send_FILENAME_HOSTID_TIME という形の名前に初期化します。
指定した計算機向けのメッセージが1つ作られ、 msg_to_host テーブルに追加されます。 このメッセージが、各計算機で動作しているクライアントに、 指定したファイルをダウンロードし、成功確認を返すように指示します。 この download メッセージは、次回の RPC 応答に含めて対象の計算機に渡します。 メッセージの形式は以下のとおりです。
<app>
<name>FILE_MOVER</name>
</app>
<app_version>
<app_name>FILE_MOVER</app_name>
<version_num>n</version_num>
</app_version>
<result>
<wu_name>x</wu_name>
<name>y</name>
</result>
<file_info>
<name>file_name</name>
<url>download_dir/file_name</url>
<md5_cksum>md5</md5_cksum>
<nbytes>file->nbytes</nbytes>
<sticky/>
<priority>priority</priority>
<exp_date>exp_date</exp_date>
</file_info>
<workunit>
<name>result.name</name>
<app_name>FILE_MOVER</app_name>
<file_ref>
<file_name>file_name</file_name>
</file_ref>
</workunit>
最終更新時刻 00:50:49, 2006年08月12日(JST)
Copyright © 2008 University of California.
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.
Copyright © 2008 Komori Hitoshi(je2bwm at jarl.com).
Japanese translation from English web pages on BOINC.
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.