*** empty log message ***

svn path=/trunk/boinc/; revision=12283
This commit is contained in:
David Anderson 2007-03-29 18:41:41 +00:00
parent b0f56c0a6e
commit 2da776cf20
3 changed files with 18 additions and 1 deletions

View File

@ -2940,3 +2940,13 @@ David 29 Mar 2007
api/
boinc_api.C
David 29 Mar 2007
- core client: include MD5 in file upload handler requests,
so that the server can (if it wants) verify the MD5.
NOTE: I don't think this should be necessary.
Also include core client release # in all requests
client/
file_xfer.C

View File

@ -107,6 +107,7 @@ int FILE_XFER::init_upload(FILE_INFO& file_info) {
"<data_server_request>\n"
" <core_client_major_version>%d</core_client_major_version>\n"
" <core_client_minor_version>%d</core_client_minor_version>\n"
" <core_client_release>%d</core_client_release>\n"
"<file_upload>\n"
"<file_info>\n"
"%s"
@ -115,12 +116,14 @@ int FILE_XFER::init_upload(FILE_INFO& file_info) {
"</xml_signature>\n"
"</file_info>\n"
"<nbytes>%.0f</nbytes>\n"
"<md5_cksum>%s</md5_cksum>\n"
"<offset>%.0f</offset>\n"
"<data>\n",
BOINC_MAJOR_VERSION, BOINC_MINOR_VERSION,
BOINC_MAJOR_VERSION, BOINC_MINOR_VERSION, BOINC_RELEASE,
file_info.signed_xml,
file_info.xml_signature,
file_info.nbytes,
file_info.md5_cksum,
file_info.upload_offset
);
file_size_query = false;

View File

@ -29,6 +29,7 @@ The request message has the form:
<data_server_request>
<core_client_major_version>1</core_client_major_version>
<core_client_minor_version>1</core_client_minor_version>
<core_client_release>1</core_client_release>
<get_file_size>filename</get_file_size>
</data_server_request>
"), "</pre>
@ -61,6 +62,7 @@ Request message format:
<data_server_request>
<core_client_major_version>1</core_client_major_version>
<core_client_minor_version>1</core_client_minor_version>
<core_client_release>1</core_client_release>
<file_upload>
<file_info>
...
@ -69,6 +71,7 @@ Request message format:
</xml_signature>
</file_info>
<nbytes>x</nbytes>
<md5_cksum>x</md5_cksum>
<offset>x</offset>
<data>
... (nbytes bytes of data; may include non-ASCII data)
@ -80,6 +83,7 @@ scheduling server to the client.
It includes a signature based on the project's file upload
authentication key pair.
&lt;nbytes> is the size of the file.
&lt;md5_cksum> is MD5 of the entire file.
&lt;offset> is the offset within the file.
<p>
Reply message format: