*** empty log message ***

svn path=/trunk/boinc/; revision=3747
This commit is contained in:
David Anderson 2004-07-02 05:06:30 +00:00
parent e8fdc8af69
commit 51c9e7fc33
3 changed files with 22 additions and 1 deletions

View File

@ -80,6 +80,7 @@ static double last_wu_cpu_time;
static bool standalone = false;
static double initial_wu_cpu_time;
static bool have_new_trickle_up = false;
static bool have_trickle_down = false;
static double seconds_until_heartbeat_giveup;
static bool heartbeat_active; // if false, suppress heartbeat mechanism
@ -321,6 +322,7 @@ static void handle_core_app_msgs() {
heartbeat_active = false;
}
if (match_tag(msg_buf, "<have_trickle_down/>")) {
have_trickle_down = true;
}
}
@ -501,3 +503,18 @@ int boinc_fraction_done(double x) {
fraction_done = x;
return 0;
}
bool boinc_receive_trickle_down(char* buf, int len) {
std::string filename;
if (have_trickle_down) {
DirScanner dirscan(".");
while (dirscan.scan(filename)) {
if (strstr(filename.c_str(), "trickle_down")) {
strncpy(buf, filename.c_str(), len);
return true;
}
}
}
return false;
}

View File

@ -14444,13 +14444,17 @@ Daniel 2004-07-01
David 1 July 2004
- trickle message support:
- core client: send <have_trickle_down> message to app when appropriate
- boinc_api: implement boinc_receive_trickle_down()
- blind attempt to fix HTTP auth crash:
check for empty URL on redirect
api/
boinc_api.C
client/
app.C,h
cs_trickle.C
hostinfo_unix.C
http.C
lib/
app_ipc.h
error_numbers.h

View File

@ -135,7 +135,7 @@ public:
//
struct APP_INIT_DATA {
char app_name[256];
char project_preferences[4096];
char project_preferences[65536];
char user_name[256];
char team_name[256];
char project_dir[256];