~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to sched/trickle_handler.C

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Berkeley Open Infrastructure for Network Computing
2
2
// http://boinc.berkeley.edu
3
 
// Copyright (C) 2005 University of California
 
3
// Copyright (C) 2008 University of California
4
4
//
5
5
// This is free software; you can redistribute it and/or
6
6
// modify it under the terms of the GNU Lesser General Public
16
16
// http://www.gnu.org/copyleft/lesser.html
17
17
// or write to the Free Software Foundation, Inc.,
18
18
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
 
 
19
//
20
20
// trickle_handler - framework for trickle-up message handler
21
21
//
22
22
//  -variety variety
36
36
 
37
37
#include "boinc_db.h"
38
38
#include "util.h"
 
39
#include "str_util.h"
39
40
#include "sched_config.h"
40
41
#include "sched_util.h"
41
42
#include "sched_msgs.h"
42
43
 
43
 
SCHED_CONFIG config;
44
44
char variety[256];
45
45
 
46
46
extern int handle_trickle(MSG_FROM_HOST&);
103
103
 
104
104
    retval = boinc_db.open(config.db_name, config.db_host, config.db_user, config.db_passwd);
105
105
    if (retval) {
106
 
        log_messages.printf(SCHED_MSG_LOG::CRITICAL, "boinc_db.open failed: %d\n", retval);
 
106
        log_messages.printf(MSG_CRITICAL, "boinc_db.open failed: %d\n", retval);
107
107
        exit(1);
108
108
    }
109
109
 
133
133
        } else if (!strcmp(argv[i], "-d")) {
134
134
            log_messages.set_debug_level(atoi(argv[++i]));
135
135
        } else {
136
 
            log_messages.printf(SCHED_MSG_LOG::CRITICAL, "unrecognized arg: %s\n", argv[i]);
 
136
            log_messages.printf(MSG_CRITICAL,
 
137
                "unrecognized arg: %s\n", argv[i]
 
138
            );
137
139
        }
138
140
    }
139
141
 
140
142
    retval = config.parse_file("..");
141
143
    if (retval) {
142
 
        log_messages.printf(SCHED_MSG_LOG::CRITICAL,
 
144
        log_messages.printf(MSG_CRITICAL,
143
145
            "Can't parse ../config.xml: %s\n", boincerror(retval)
144
146
        );
145
147
        exit(1);
146
148
    }
147
149
 
148
 
    log_messages.printf(SCHED_MSG_LOG::NORMAL, "Starting trickle handler\n");
 
150
    log_messages.printf(MSG_NORMAL,
 
151
        "Starting trickle handler\n"
 
152
    );
149
153
 
150
154
    install_stop_signal_handler();
151
155
 
152
156
    main_loop(one_pass);
153
157
}
154
158
 
155
 
const char *BOINC_RCSID_560388f67e = "$Id: trickle_handler.C 12652 2007-05-11 16:30:13Z boincadm $";
 
159
const char *BOINC_RCSID_560388f67e = "$Id: trickle_handler.C 14783 2008-02-25 18:05:04Z davea $";