|
发表于 2006-7-25 19:29:13
|
显示全部楼层
http://boinc.berkeley.edu/send_file.php
Sending files
发送文件
--------------------------------------------------------------------------------
To send a file to a specific host, use the function
如果需要发送一个文件到一个特定的主机,可以用命令
send_file(int host_id, const char* file_name, int priority, long int exp_date)
or the command line program
或者在命令行版本中
send_file -host_id X -file_name Y -priority Z -days_exp N
priority is the relative importance of the file (default = 1)
优先权是跟文件的重要度有关联的(默认是1)
days_exp is the number of days the file should stay on the host (default = 100)
days_exp是文件允许停留在主机上的天数(默认是100)
send_file creates a result and initializes it with a name of the form
send_file 创建一个结果并用一个规定格式的名字初始化它
send_FILENAME_HOSTID_TIME.
A message is created for the host and added to the msg_to_host table. This message instructs the client to download the file and acknowledge a successful download. The download message included in the next RPC reply to the host. The message has the form:
一条信息会为主机创建并加入到msg_to_host表格中。这条信息会指导主机去下载文件并确认是一个成功的下载。下载信息将包括在下一个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>
--------------------------------------------------------------------------------
初次翻译,不知道效果怎么样,希望多多指教。
[ Last edited by apple on 2006-7-25 at 19:31 ] |
评分
-
查看全部评分
|