Commit Graph

38 Commits

Author SHA1 Message Date
David Anderson 5346ff3b7a BOINC lib: change get_mac_address to return just one address; prefer Ethernet 2013-11-18 10:20:46 -08: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 08a529cb86 win compile fix
svn path=/trunk/boinc/; revision=25710
2012-05-23 23:30:41 +00:00
David Anderson 9bba5f4349 - get rid of BOINC_SOCKLEN_T stuff; just use socklen_t
svn path=/trunk/boinc/; revision=25709
2012-05-23 23:19:38 +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 9527cb6534 - install: don't install std_fixes.h or msg_queue.cpp
- remove some unused code
- scheduler: small code cleanup

svn path=/trunk/boinc/; revision=18465
2009-06-19 17:21:34 +00:00
David Anderson 5613634c3a - compile fixes for Linux
svn path=/trunk/boinc/; revision=18440
2009-06-16 22:17:04 +00:00
David Anderson 0b3ce504ff - Win: compile fixes
svn path=/trunk/boinc/; revision=18439
2009-06-16 21:58:38 +00:00
David Anderson d7aacaac32 - don't include config.h from network.h (Gabor Gombas)
svn path=/trunk/boinc/; revision=18428
2009-06-16 18:51:33 +00:00
David Anderson 97d50e12b9 - compile fixes for Haiku
svn path=/trunk/boinc/; revision=18213
2009-05-27 23:36:55 +00:00
David Anderson 72a59f0527 - client: put back the call to res_init() on lookup failure.
Apparently it worked after all.

svn path=/trunk/boinc/; revision=17793
2009-04-12 15:30:45 +00:00
David Anderson f3e362097e - client: back out res_init() change; it didn't work
svn path=/trunk/boinc/; revision=17758
2009-04-09 04:41:41 +00:00
David Anderson bc889ca27a - client: (unix): if host name lookup fails, call res_init().
This is an attempt to fix a problem on Linux where,
    if the client starts before a VPN is set up, it can never communicate

svn path=/trunk/boinc/; revision=17711
2009-03-31 16:45:17 +00:00
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
David Anderson c43ecb7c13 svn path=/trunk/boinc/; revision=14538 2008-01-11 23:52:49 +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 3eaea4fb71 *** empty log message ***
svn path=/trunk/boinc/; revision=12347
2007-04-11 21:49:57 +00:00
David Anderson 7499c10e8f *** empty log message ***
svn path=/trunk/boinc/; revision=12199
2007-03-08 21:00:26 +00:00
Rom Walton 7286dbdd18 *** empty log message ***
svn path=/trunk/boinc/; revision=9284
2006-01-23 08:47:05 +00:00
David Anderson 53919051a9 -command_line arg to create_work
svn path=/trunk/boinc/; revision=9112
2005-12-21 21:46:22 +00:00
Eric J. Korpela 6e30e66599 Added #ifdefs and explicit inclusion of "boinc_win.h" to files to help those
trying to compile under windows with alternate compilers.

svn path=/trunk/boinc/; revision=9077
2005-12-16 03:35:15 +00:00
David Anderson 98c379006e win compile fixes
svn path=/trunk/boinc/; revision=7511
2005-08-25 23:51:49 +00:00
David Anderson 041b6f24c6 *** empty log message ***
svn path=/trunk/boinc/; revision=7492
2005-08-25 23:07:58 +00:00
Bruce Allen afb16504bf Belongs after double inclusion protection
svn path=/trunk/boinc/; revision=7377
2005-08-16 22:57:22 +00:00
Bruce Allen 97db749cfa Compile fix (bzero)
svn path=/trunk/boinc/; revision=7375
2005-08-16 22:49:18 +00:00
David Anderson 4e02af7fb7 *** empty log message ***
svn path=/trunk/boinc/; revision=7367
2005-08-16 21:31:27 +00:00
David Anderson 66fbe0cfbe *** empty log message ***
svn path=/trunk/boinc/; revision=7360
2005-08-16 20:48:21 +00:00
Rom Walton 3031042699 *** empty log message ***
svn path=/trunk/boinc/; revision=6401
2005-06-22 10:51:34 +00:00
David Anderson 24ebadef4c *** empty log message ***
svn path=/trunk/boinc/; revision=6299
2005-06-07 21:46:11 +00:00
David Anderson 8857f357f7 *** empty log message ***
svn path=/trunk/boinc/; revision=6158
2005-05-14 19:45:24 +00:00
Eric J. Korpela 90d49a7d91 Modified the BOINC_GETSOCKOPT_TYPE macro so it determines the proper type of
parameter 5 to getsockopt() by using the compiler.  The macro was in danger of
becoming an ever expanding list of case statements, since some platforms use
socklen_t, others use size_t, and still others use int.  Some aren't even
consistent from OS rev to OS rev.

A macro BOINC_SOCKLEN_T is set in config.h to indicate the proper type.  This
is typedef to be boinc_socklen_t in lib/network.h.  The special cases for
__APPLE__ and WIN32 can probably be removed at a later time.  Places where
socklen_t was used have been changed to boinc_socklen_t.

Also added double inclusion protection to network.h

svn path=/trunk/boinc/; revision=6055
2005-05-06 01:54:00 +00:00
David Anderson 50bf271c72 *** empty log message ***
svn path=/trunk/boinc/; revision=5817
2005-04-10 00:16:20 +00:00
David Anderson cd1dccd849 *** empty log message ***
svn path=/trunk/boinc/; revision=5813
2005-04-08 23:40:50 +00:00
David Anderson ce48424984 *** empty log message ***
svn path=/trunk/boinc/; revision=5745
2005-03-30 21:11:49 +00:00
David Anderson da9f04ebe0 *** empty log message ***
svn path=/trunk/boinc/; revision=5734
2005-03-29 23:56:50 +00:00
David Anderson 2944a46d99 *** empty log message ***
svn path=/trunk/boinc/; revision=5575
2005-03-07 21:19:09 +00:00
David Anderson f6f07b81c6 *** empty log message ***
svn path=/trunk/boinc/; revision=5573
2005-03-07 06:09:04 +00:00