Commit Graph

33 Commits

Author SHA1 Message Date
David Anderson 36460bc288 Compile fixes for Ubuntu 2014-02-06 12:17:28 -08:00
David Anderson ff31b9dfc8 client (Android) compile fix 2014-02-02 22:07:33 -08:00
David Anderson 389db3727a GUI RPC: make Unix domain work on Mac (hopefully) 2014-01-31 16:38:36 -08:00
Charlie Fenton d4aafeb91f GUI RPC: Fix Unix domain stuff for Mac OS X 2014-01-31 16:14:53 -08:00
David Anderson 1d85d22e73 GUI RPC: disable Unix domain stuff for Mac OS X 2014-01-31 14:44:23 -08:00
David Anderson 7e3f9d323a Win compile fixes 2014-01-30 23:15:03 -08:00
David Anderson e22ffeb377 GUI RPC: add support for RPCs over Unix domain sockets (for Android)
- If run with --gui_rpc_unix_domain, the client will listen on
  a Unix-domain socket (named "boinc_socket") rather than on a TCP port.
- Add RPC_CLIENT::init_unix_domain() function to C++ GUI RPC interface
  (Note: we'll need to add a corresponding function to the Java interface)
- boinccmd: add --unix_domain option
2014-01-30 22:57:44 -08:00
David Anderson d980f70163 client and manager: the set_cc_config and get_cc_config GUI RPCs had nonstandard replies, which weren't parsed correctly by the calling code.
The reply from a GUI RPC that don't return info is one of:
<success/>
<error>error message</error>
<status>N</status>
2013-08-11 00:23:41 -07:00
David Anderson ecfd6d8a63 - boinccmd: check RPC replies for errors; show them. 2013-05-03 15:05:30 -07:00
David Anderson 53782b7de4 - lib: switch include order to the way it was (general to specific).
Should fix MinGW compile


svn path=/trunk/boinc/; revision=26008
2012-08-11 05:47:18 +00:00
David Anderson 2e71ade9c5 Win compile fixes
svn path=/trunk/boinc/; revision=25937
2012-08-01 21:02:54 +00:00
David Anderson 405f567c81 - code cleanup: in foo.cpp, include foo.h first
svn path=/trunk/boinc/; revision=25933
2012-08-01 20:04:05 +00:00
David Anderson 9279ef467e - GUI RPC client lib: change setsockopt() for receive timeout
to work on Windows.  From Fred.


svn path=/trunk/boinc/; revision=24648
2011-11-24 21:16:32 +00:00
David Anderson c5c5975b44 - Improve interface of XML_PARSER.
Add parsed_tag and is_tag to the class,
    so that parsing functions don't need to declare them
    and pass them around.
- Complete the task of using XML_PARSER as the argument
    to all parsing functions.
    (Internally, many of these functions still use the old XML parser;
    that's the next step.)


svn path=/trunk/boinc/; revision=23978
2011-08-10 17:11:08 +00:00
David Anderson 609d5665cc - client: pass XML_PARSER& rather than MIOFILE& to parse functions.
Preparatory to using new-style XML parsing everywhere.


svn path=/trunk/boinc/; revision=23975
2011-08-09 21:44:14 +00:00
David Anderson 4a5c418b43 - GUI RPC client library: increase request buffer size
from 4KB to 100B


svn path=/trunk/boinc/; revision=23484
2011-04-29 23:47:41 +00:00
David Anderson 2840281c56 - boinccmd: --get_cc_status now prints its result
- feeder: don't panic if can't find app for result;
    if the app is deprecated, it won't be in shmem

svn path=/trunk/boinc/; revision=22674
2010-11-10 18:17:20 +00:00
David Anderson 746f62ff1a - GUI RPC: remove unneeded isIPV6 flag, factor out sizeof() logic
svn path=/trunk/boinc/; revision=22472
2010-10-07 17:41:34 +00:00
Rom Walton e345e67b04 Debugging stuff
svn path=/trunk/boinc/; revision=22429
2010-09-30 17:39:30 +00:00
Charlie Fenton 528d2b40cf lib: Fix problem with IPV6-compatible code on Mac
svn path=/trunk/boinc/; revision=22428
2010-09-30 07:42:32 +00:00
Charlie Fenton bbcc7cd36d lib: Temporary work-around for unknown problem with IPV6-compatible code on Mac
svn path=/trunk/boinc/; revision=22425
2010-09-29 23:27:44 +00:00
David Anderson 70ad1dcb4b - compile fix for Mac
svn path=/trunk/boinc/; revision=22362
2010-09-15 22:43:09 +00:00
David Anderson 0d41de283a - client: revert to old network functions (gethostbyname() etc.) on Win:
- inet_ntop() etc. exist only on Vista+
		- the other functions are declared in winsock2.h.
			This breaks the Manager build, since wxwidgets includes winsock.h.
		So to hell with it.
	- windows build: manager doesn't depend on client

svn path=/trunk/boinc/; revision=22358
2010-09-15 20:33:44 +00:00
David Anderson 0f4735352a - client: a bit of IPv6 compatibility
- use "sockaddr_storage" to store network addresses
        (which may be IPv4 or IPv6)
        rather than assuming they fit in an int.
    - the entries in gui_rpc_auth.cfg may now be IPv6 addresses
        (a🅱️c:e:f:g format),
        or domain names of hosts that support only IPv6
    Note: GUI RPCs are still constrained to use IPv4,
    but this should be easy to change if it's every needed

    Also: replace deprecated gethostbyname() with getaddrinfo().

svn path=/trunk/boinc/; revision=22353
2010-09-15 17:41:25 +00:00
David Anderson 0f2440c90b - GUI RPC client side: set up a 30 second receive timeout for
socket to client.  That way GUI won't hang if client does.
    From Fred of BoincTasks

svn path=/trunk/boinc/; revision=21663
2010-05-31 21:51:09 +00:00
Rom Walton e14e1cad34 - Remove BOINC_RCSID tags from source files, we are doing branching and tagging
properly.
        
    <Various Files>

svn path=/trunk/boinc/; revision=20873
2010-03-12 16:51:57 +00:00
David Anderson 8f89dc58d8 - client: fix yesterday's checkin to remove restrictions
on GUI RPC request elements.
    You can now use either <foo></foo> or <foo/>
    for empty request messages.
- GUI RPC client library: fix double-free bug.
    it's not clear how this ever worked.

svn path=/trunk/boinc/; revision=19543
2009-11-11 22:01:27 +00:00
David Anderson 563a55f37e - client/libs/samples: remove "#define read _read" etc. from boinc_win.h
These cause problems when "read" is a member name, etc.
		Do these #defines, conditioned on _MSC_VER,
		in the files that actually need them.
	- don't include boinc_win.h from parse.h.
		principle of minimal inclusion

svn path=/trunk/boinc/; revision=18902
2009-08-22 17:00:19 +00:00
David Anderson 3864d5c99c - GUI RPC: fix memory leak in authorize()
svn path=/trunk/boinc/; revision=18833
2009-08-13 05:08:07 +00:00
David Anderson b9fc36ef84 - GUI RPC: made password file read into function
- lib: minimized FCGI library

svn path=/trunk/boinc/; revision=17133
2009-02-03 21:22:50 +00:00
David Anderson 9a7d7facd9 - lib: comment out perror()s in connection code.
svn path=/trunk/boinc/; revision=17055
2009-01-27 23:12:50 +00:00
David Anderson 268b694932 - client: if an app has avg_ncpus < 1, run it at above-idle priority
even if it doesn't use a coprocessor.
- scheduler: added an "nci" (non CPU intensive) plan class
    to sched_plan.cpp.  It declares the use of 1% of a CPU.

The above two changes are intended to allow the QCN app to
run at above_idle priority, which it needs in order to do 500Hz polling.

- API: the std::string version of boinc_resolve_filename()
    acts the same as the char[] version.

svn path=/trunk/boinc/; revision=16985
2009-01-22 19:51:04 +00:00
David Anderson 98cfb8d3b0 - rename .C files to .cpp so that Doxygen will work
svn path=/trunk/boinc/; revision=16069
2008-09-26 18:20:24 +00:00