svn path=/trunk/boinc/; revision=1120
This commit is contained in:
David Anderson 2003-04-01 03:18:12 +00:00
parent b9e2c0e49f
commit f7857fc386
6 changed files with 40 additions and 19 deletions

View File

@ -21,7 +21,7 @@ CC = @CC@ $(CFLAGS)
CLIBS = @LIBS@ CLIBS = @LIBS@
CLIENT_PROG = boinc_$(BOINC_MAJOR_VERSION).$(BOINC_MINOR_VERSION)_@host@ CLIENT_PROG = boinc_$(BOINC_MAJOR_VERSION).$(BOINC_MINOR_VERSION)_@host@
PROGS = $(CLIENT_PROG) test_net_xfer test_http test_file_xfer PROGS = $(CLIENT_PROG)
all: $(PROGS) all: $(PROGS)
@ -102,15 +102,6 @@ speed_stats.o:
$(CLIENT_PROG): main.o $(OBJS) $(CLIENT_PROG): main.o $(OBJS)
$(CC) main.o $(OBJS) $(CLIBS) -o $(CLIENT_PROG) $(CC) main.o $(OBJS) $(CLIBS) -o $(CLIENT_PROG)
test_net_xfer: test_net_xfer.o $(TEST_NET_XFER_OBJS)
$(CC) test_net_xfer.o $(TEST_NET_XFER_OBJS) $(CLIBS) -o test_net_xfer
test_http: test_http.o $(TEST_HTTP_OBJS)
$(CC) test_http.o $(TEST_HTTP_OBJS) $(CLIBS) -o test_http
test_file_xfer: test_file_xfer.o $(TEST_FX_OBJS)
$(CC) test_file_xfer.o $(TEST_FX_OBJS) $(CLIBS) -o test_file_xfer
tar: tar:
cd $(topsrcdir)/..; \ cd $(topsrcdir)/..; \
tar cf boinc_client_$(BOINC_MAJOR_VERSION).$(BOINC_MINOR_VERSION).tar $(ARCHIVE_TARGETS); \ tar cf boinc_client_$(BOINC_MAJOR_VERSION).$(BOINC_MINOR_VERSION).tar $(ARCHIVE_TARGETS); \
@ -127,9 +118,6 @@ clean:
install: all install: all
-mkdir -p $(INSTALL_DIR)/client -mkdir -p $(INSTALL_DIR)/client
cp test_net_xfer $(INSTALL_DIR)/client/test_net_xfer
cp test_http $(INSTALL_DIR)/client/test_http
cp test_file_xfer $(INSTALL_DIR)/client/test_file_xfer
cp $(CLIENT_PROG) $(INSTALL_DIR)/client/$(CLIENT_PROG) cp $(CLIENT_PROG) $(INSTALL_DIR)/client/$(CLIENT_PROG)
uninstall: uninstall:

View File

@ -170,7 +170,9 @@ int ACTIVE_TASK::start(bool first_time) {
return ERR_FOPEN; return ERR_FOPEN;
} }
#ifdef HAVE_SYS_IPC_H #ifdef HAVE_SYS_IPC_H
aid.shm_key = ftok( init_data_path, slot ); aid.shm_key = ftok(init_data_path, slot);
#else
#error
#endif #endif
retval = write_init_data_file(f, aid); retval = write_init_data_file(f, aid);
if (retval) return retval; if (retval) return retval;

View File

@ -64,6 +64,8 @@
#include "log_flags.h" #include "log_flags.h"
#include "net_xfer.h" #include "net_xfer.h"
#include "util.h" #include "util.h"
#include "client_types.h"
#include "message.h"
// If socklen_t isn't defined, define it here as size_t // If socklen_t isn't defined, define it here as size_t
#if !defined(socklen_t) #if !defined(socklen_t)
@ -72,13 +74,15 @@
int NET_XFER::get_ip_addr( char *hostname, int &ip_addr ) { int NET_XFER::get_ip_addr( char *hostname, int &ip_addr ) {
hostent* hep; hostent* hep;
char buf[256];
#ifdef _WIN32 #ifdef _WIN32
if(NetOpen()) return -1; if(NetOpen()) return -1;
#endif #endif
hep = gethostbyname(hostname); hep = gethostbyname(hostname);
if (!hep) { if (!hep) {
fprintf(stderr, "can't resolve hostname %s\n", hostname); sprintf(buf, "can't resolve hostname %s\n", hostname);
show_message(0, buf, MSG_ERROR);
#ifdef _WIN32 #ifdef _WIN32
NetClose(); NetClose();
#endif #endif
@ -364,7 +368,7 @@ int NET_XFER_SET::do_select(double& bytes_transferred, timeval& timeout) {
if (nxp) { if (nxp) {
nxp->got_error(); nxp->got_error();
} else { } else {
fprintf(stderr, "do_select(): nxp not found\n"); show_message(0, "do_select(): nxp not found\n", MSG_ERROR);
} }
} }
} }

View File

@ -53,7 +53,7 @@ Help debug and enhance the BOINC software.
<a href=http://www.equn.com/boinchina><font size=-1>Chinese</font></a> <a href=http://www.equn.com/boinchina><font size=-1>Chinese</font></a>
<a href=http://www.boinc-fr.net><font size=-1>French</font></a> <a href=http://www.boinc-fr.net><font size=-1>French</font></a>
<a href=http://www.boinc.de/><font size=-1>German</font></a> <a href=http://www.boinc.de/><font size=-1>German</font></a>
<a href=http://www.boinc.pisem.net><font size=-1>Russian</font></a> <a href=http://www.boinc.narod.ru><font size=-1>Russian</font></a>
<a href=http://boinc.astroseti.org><font size=-1>Spanish</font></a> <a href=http://boinc.astroseti.org><font size=-1>Spanish</font></a>
<br><br> <br><br>

View File

@ -56,7 +56,7 @@ Each project directory contains:
Create two directories, used to store symbolic links Create two directories, used to store symbolic links
to project-specific HTML and CGI directories. to project-specific HTML and CGI directories.
You might call these boinc_html and boinc_cgi. You might call these boinc_html and boinc_cgi.
Then edit your Apache configuration file, Then edit your Apache configuration file <i>httpd.conf</i>,
adding something like the following: adding something like the following:
<pre> <pre>
@ -77,7 +77,19 @@ ScriptAlias /david_cgi/ "/users/david/boinc_cgi/"
&lt;/Directory> &lt;/Directory>
</pre> </pre>
<p>
Make sure the following is included
(failure to do so will create a major security loophole,
namely your .htconfig.xml files will be readable via HTTP):
<pre>
&lt;Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
&lt;/Files>
</pre>
(This is included in the standard Apache config file).
<p>
You should also set the default MIME type as follows: You should also set the default MIME type as follows:
<pre> <pre>
DefaultType application/octet-stream DefaultType application/octet-stream

15
todo
View File

@ -6,6 +6,21 @@ BUGS (arranged from high to low priority)
- global battery/user active prefs are always true in the client - global battery/user active prefs are always true in the client
- Client should display "Upload failed" and "Download failed" when failure occurs - Client should display "Upload failed" and "Download failed" when failure occurs
- Result status should say "downloading files", "uploading files", etc. - Result status should say "downloading files", "uploading files", etc.
- message window should reposition to bottom when new message
- show_message should expect \n, discard it if GUI
- show "---" for CPU time, %done of results not started yet
- Win GUI: line between menus and tabs
- message for client starting or exiting
- "show graphics" should not use right-click
- win GUI: reduce flicker?
- on major version change,
should discard any pending WUs
- labels on disk graph are not clear
- document and add to global prefs?
start_saver
run_minimized
run_on_startup
hangup_if_dialed
----------------------- -----------------------
HIGH-PRIORITY (should do for beta test) HIGH-PRIORITY (should do for beta test)