Commit Graph

122 Commits

Author SHA1 Message Date
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
Charlie Fenton 45c92838a2 SCR / CLIENT: fix get_screensaver_tasks RPC so it does not exclude tasks suspended for CPU throttling. Fixes the screensaver problem for V6 graphics.
svn path=/trunk/boinc/; revision=15738
2008-08-01 09:50:31 +00:00
David Anderson 884bad0975 - client: show proxy info in messages at startup and when changed
fixes #704
- web: fix the am_set_info.php RPC
    (most args are optional, not mandatory)

svn path=/trunk/boinc/; revision=15716
2008-07-30 21:37:41 +00:00
David Anderson 8befa29f81 - client: if GUI RPC auth error, close the socket.
This prevents a DoS by sending <auth1> over and over,
    filling the send buffer and eventually causing the client to block.
- Unix build: if m4 missing, check for gm4


svn path=/trunk/boinc/; revision=15282
2008-05-23 19:24:20 +00:00
David Anderson d22b6e35b2 - manager: in disk tab, divide free space into
available/unavailable to BOINC

svn path=/trunk/boinc/; revision=15194
2008-05-13 20:39:42 +00:00
David Anderson 58b5f80366 - Added <d_allowed> element to get_disk_usage GUI RPC
svn path=/trunk/boinc/; revision=15190
2008-05-13 19:52:35 +00:00
David Anderson aab1e97f7d - GUI RPC: fix some XML errors (missing / in single-tag elements)
Fixes #524 (from Nicolas)

svn path=/trunk/boinc/; revision=14682
2008-02-06 00:17:13 +00:00
Rom Walton feb3441601 - MGR: If the project_init.xml file suggests a project to attach too
attempt to attach to it.
    - CLIENT: Move the code that deletes the project_init.xml from detach
        project to attach project.  It is only needed for as long as
        it takes to attach to a project.
        
    client/
        gui_rpc_server_ops.C
    clientgui/
        AdvancedFrame.cpp
        sg_BoincSimpleGUI.cpp

svn path=/trunk/boinc/; revision=14582
2008-01-16 22:10:34 +00:00
Rom Walton 5790f15ce1 Quick Updates
svn path=/trunk/boinc/; revision=14535
2008-01-11 18:09:50 +00:00
David Anderson f7c8bc5280 - client: fix bug that would falsely report DLL init errors
- client: don't crash when detach a project using anonymous platform
        (fixes #511)

svn path=/trunk/boinc/; revision=14348
2007-12-03 17:46:07 +00:00
David Anderson 5e5a063ef5 - GUI RPC: fix format of <auth2> request
- GUI RPC: don't enable network on bad request

svn path=/trunk/boinc/; revision=13933
2007-10-22 23:41:12 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
David Anderson cbe14c89fa - finished up the above
svn path=/trunk/boinc/; revision=13693
2007-09-27 21:28:32 +00:00
David Anderson aadcc979cd - client: first pass at fixing a fundamental design flaw:
there's a single GUI_HTTP object,
    and it works only if used sequentially,
    i.e. an op is started only after the previous one ends.
    This breaks if a GUI RPC triggerse and op while
    a project-list fetch (initiated by the client itself) is in progress.
    Or if two managers are connected at the same time,
    and both do HTTP ops.
    The solution: have a separate GUI_HTTP object for each GUI_RPC_CONN,
    and an additional one for use by the client itself.

svn path=/trunk/boinc/; revision=13692
2007-09-27 21:03:15 +00:00
Charlie Fenton e8a4acda63 V6 screensaver shows graphics for both V5 and V6 applications.
svn path=/trunk/boinc/; revision=13670
2007-09-26 10:17:43 +00:00
David Anderson f1f5930579 - client: removed everything related to screensaver
(deciding which app to use, implementing blanking interval, etc.)
    This logic is all now in the screensaver itself.
- GUI RPC: removed get/set screensaver mode RPCs
- API: added a "backwards_compatible_graphics" flag to BOINC_OPTIONS.
    V6 apps should set this.
    If set, the runtime library checks for graphics messages
    from the client, and launches/kills the graphics app (if any).
    The app will then work graphically with pre-V6 clients.
- removed some old files

svn path=/trunk/boinc/; revision=13651
2007-09-25 16:04:45 +00:00
David Anderson 135c38a7e3 - client: get_proxy_settings GUI RPC requires authentication
svn path=/trunk/boinc/; revision=13623
2007-09-21 15:07:15 +00:00
Charlie Fenton 8066ab1f97 SCR: Impelement new RPC::get_screensaver_tasks()
svn path=/trunk/boinc/; revision=13587
2007-09-14 01:45:00 +00:00
David Anderson 2cd158a358 - client: timezone reflects daylight savings time (Win)
from David Barnard; fixes #334
- GUI RPC: add <success/> replies for ops that don't return anything
- GUI RPC: check args for project_attach
- GUI RPC: return error (not blank) if no prefs override file
- add error string for ERR_TOO_MANY_EXITS

svn path=/trunk/boinc/; revision=13293
2007-08-10 16:02:09 +00:00
Charlie Fenton 55e7a41874 GUI RPC: Add get_global_prefs_working_struct(); rename get_global_prefs_network() to get_global_prefs_file()
svn path=/trunk/boinc/; revision=13262
2007-08-02 08:12:03 +00:00
David Anderson b4241eadd6 - GUI RPC: added get_global_prefs_network()
and get_global_prefs_working()

svn path=/trunk/boinc/; revision=13257
2007-08-01 20:26:08 +00:00
David Anderson 7951b86c03 - GUI RPC: added "detach_when_done" and "dont_detach_when_done"
project-control options.
    Made these available in boinc_cmd.
    Fixes #335.

svn path=/trunk/boinc/; revision=13152
2007-07-13 21:11:40 +00:00
David Anderson ef80e8576f - Added program sched/sched_driver.C.
This generates a sequence of scheduler requests,
    with host info taken from a file,
    that you can feed into the scheduler (cgi --batch)
    to simulate things like homogeneous redundancy
- Added args to XML_PARSER::skip_unexpected() to you can say
    whether to write messages to stderr for unparsed stuff.
    This is set to true if log_flags.unparsed_xml is set (client)
    or if debug_level is 3 (server)
- removed references to $(LIBRSA) in Makefile.am's

client/
    Makefile.am
    acct_mgr.C
    gui_rpc_server_ops.C
    log_flags.C
lib/
    Makefile.am
    app_ipc.C
    gui_rpc_client_ops.C
    parse.C,h
    prefs.C
sched/
    Makefile.am
    sched_config.C
    sched_driver.C

svn path=/trunk/boinc/; revision=13090
2007-07-03 21:55:50 +00:00
David Anderson 7c7fbf250d - client: add <simple_gui_only> config flag
- GUI RPC: add disallow_attach and simple_gui_only flags
    to CC_STATUS structure

client/
    gui_rpc_server_ops.C
    log_flags.C,h
html/inc/
    stats_sites.inc
lib/
    gui_rpc_client.h
    gui_rpc_client_ops.C

svn path=/trunk/boinc/; revision=13084
2007-07-02 20:55:21 +00:00
David Anderson ee8462c20f - client: fix bug that broke <os_random_only> option
- client and Manager: attempts to fix problems
		if <guirpc_debug> is set

	client/
		gui_rpc_server_ops.C
	clientgui/
		MainDocument.cpp
	lib/
		gui_rpc_client_ops.C
		md5_file.C

svn path=/trunk/boinc/; revision=13083
2007-07-02 20:45:16 +00:00
David Anderson 79ad608685 - GUI RPC: debug set_debts handler. Fixes #131
client/
    gui_rpc_server_ops.C

svn path=/trunk/boinc/; revision=13065
2007-06-30 18:46:07 +00:00
David Anderson b4087e0e1b svn path=/trunk/boinc/; revision=12850 2007-06-08 07:55:27 +00:00
David Anderson 610d4cfa77 - client: allow suspension of non-CPU-intensive project or app
(undoes checkin of 25 Jan 2005; I don't remember why we
    made that change.  Next time put in checkin notes!)
- client: Linux: show error msg if can't open /proc/cpuinfo
    or /proc/meminfo; set memory size of 1 GB in latter case.
    Remove duplicate code that read /proc/meminfo
- 'start' script; handle <disabled>0</disable> in tasks and daemon
    elements of config.xml (can't handle <disable/>, however).
    
client/
    gui_rpc_server_ops.C
    hostinfo_unix.C
sched/
    feeder.C
    start

svn path=/trunk/boinc/; revision=12807
2007-06-03 19:37:45 +00:00
David Anderson 88860ed316 - user web: fix bug in host merge function
- core client: fix bug in set_debt() GUI RPC
- scheduler: some of the "quick checks" in scan_work_array()
    are applicable to locality scheduling also,
    so they should be moved to wu_is_infeasible().
    I did this for one: the check for one result
    per user (or host) per WU.  Should do for others.
    
client/
    gui_rpc_server_ops.C
html/
    host_edit_action.php
    host_edit_form.php
sched/
    sched_array.C
    sched_send.C,h

svn path=/trunk/boinc/; revision=12784
2007-05-30 17:25:51 +00:00
David Anderson 56408dbbbe - Add GUI RPC to set projects debts (short and long term).
Lets you set all of them at once, as suggested by Nicolas Alvarez.
    fixes #131

client/
    gui_rpc_server_ops.C
html/user/
    sample_index.php
lib/
    boinc_cmd.C
    gui_rpc_client.h
    gui_rpc_client_ops.C

svn path=/trunk/boinc/; revision=12749
2007-05-26 21:15:58 +00:00
David Anderson bd8b0aed41 - core client: on attach to project,
if the initial sched request failed,
		the manager would show "communicating" for 60 sec,
		then time out and show "failed to attach".
		But the project would actually be attached.
		This was due to a logic error,
		but I fixed it in a more fundamental way:
		by considering an attach to be complete immediately,
		without waiting for a successful scheduler RPC.

		This was originally done to ensure that the URL and account key were valid.
		But when using the BOINC Manager, we've already verified
		both of these before doing the attach project RPC.

		When using boinc_cmd, you now have to check for messages
		indicating a bad URL or account key.
		I changed things to print these messages on every sched RPC.

		Implementation: the notion of "tentative project" no longer exists.

	client/
		client_state.C,h
		client_types.C,h
		cs_account.C
		cs_benchmarks.C
		cs_scheduler.C
		gui_rpc_server_ops.C
		scheduler_op.C
		sim.C
		sim_util.C

svn path=/trunk/boinc/; revision=12663
2007-05-14 19:18:45 +00:00
David Anderson c31aa48a50 - core client: in statefile read, set avp->platform
before linking.
	- core client: when parse app_info.xml,
		set platform to primary platform.
		Otherwise anonymous platform mechanism doesn't work.
	- GUI RPC: in attach project RPC, check for
		already attached even in config file case

	client/
		cs_statefile.C
		gui_rpc_server_ops.C
		scheduler_op.C
		time_stats.C

svn path=/trunk/boinc/; revision=12662
2007-05-14 17:36:16 +00:00
Charlie Fenton 1bf67eddda Mac: Determine size of BOINC Manager bundle in core client if it was launched by Manager rather than in the Manager itself, to get correct information when controlling a remote computer.
svn path=/trunk/boinc/; revision=12651
2007-05-11 07:05:29 +00:00
David Anderson c08eddf7fe - GUI RPC: add new element d_boinc to DISK_USAGE;
tells how much disk space BOINC is using
        (not including projects).
    - added project.max_infeasible_count to client simulator

    client/
        gui_rpc_server_ops.C
        sim.C,h
        sim_util.C
    clientgui/
        ViewResources.cpp
    lib/
        filesys.C
        bui_rpc_client.h
        bui_rpc_client_ops.C

svn path=/trunk/boinc/; revision=12615
2007-05-08 23:12:40 +00:00
David Anderson 138f17af40 *** empty log message ***
svn path=/trunk/boinc/; revision=12216
2007-03-13 19:33:27 +00:00
David Anderson 81effa6a7b *** empty log message ***
svn path=/trunk/boinc/; revision=12127
2007-02-21 16:26:51 +00:00
David Anderson a26b6a2215 *** empty log message ***
svn path=/trunk/boinc/; revision=11972
2007-01-25 23:39:06 +00:00
David Anderson afb1d21d9a *** empty log message ***
svn path=/trunk/boinc/; revision=11890
2007-01-17 18:13:33 +00:00
David Anderson 5ac8ba3150 *** empty log message ***
svn path=/trunk/boinc/; revision=11721
2006-12-26 00:37:25 +00:00
David Anderson f8c64d3622 *** empty log message ***
svn path=/trunk/boinc/; revision=11689
2006-12-17 02:48:19 +00:00
David Anderson 46695c2155 *** empty log message ***
svn path=/trunk/boinc/; revision=11683
2006-12-14 20:44:39 +00:00
David Anderson d3b1c45d64 *** empty log message ***
svn path=/trunk/boinc/; revision=11634
2006-12-07 17:30:48 +00:00
David Anderson e9a0efd06d *** empty log message ***
svn path=/trunk/boinc/; revision=11562
2006-11-22 03:23:38 +00:00
David Anderson 27d33df2d4 *** empty log message ***
svn path=/trunk/boinc/; revision=11553
2006-11-20 16:52:03 +00:00
David Anderson 6f6f62c955 *** empty log message ***
svn path=/trunk/boinc/; revision=11515
2006-11-10 17:55:22 +00:00
David Anderson 2e9810d8b5 *** empty log message ***
svn path=/trunk/boinc/; revision=11485
2006-11-07 00:38:08 +00:00
David Anderson b12a0b786c *** empty log message ***
svn path=/trunk/boinc/; revision=11461
2006-11-03 17:08:49 +00:00
David Anderson e26a45b021 *** empty log message ***
svn path=/trunk/boinc/; revision=11128
2006-09-08 22:28:10 +00:00
David Anderson db24601537 *** empty log message ***
svn path=/trunk/boinc/; revision=11123
2006-09-07 20:39:25 +00:00
David Anderson b4105a1a3b *** empty log message ***
svn path=/trunk/boinc/; revision=11122
2006-09-07 18:19:25 +00:00