- boinc_cmd: add --network_available and --get_cc_status options

lib/
    boinc_cmd.C

svn path=/trunk/boinc/; revision=12642
This commit is contained in:
David Anderson 2007-05-11 00:42:13 +00:00
parent ab0fa32bcd
commit 91a5a79c59
3 changed files with 27 additions and 2 deletions

View File

@ -4782,3 +4782,8 @@ Janus 10 May 2007
/html/bt/inc/
binteger.php
David 10 May 2007
- boinc_cmd: add --network_available and --get_cc_status options
lib/
boinc_cmd.C

View File

@ -185,6 +185,16 @@ array('inst_nB_v13.exe',
);
$linux = array(
array(
'http://www.vanheusden.com/multitail/',
'MultiTail',
'5.0.3',
'Multitail shows several simultaneous tails in different curses windows.',
'http://www.vanheusden.com/multitail/',
'',
'Multitail shows several simultaneous tails in different curses windows. It\'s handy in combination with BOINCtail, or to see the client output files when run with -redirectio. ',
1178838772
),
array(
'http://www.vanheusden.com/boinctail/',
'BOINCTail',

View File

@ -93,6 +93,8 @@ Commands:\n\
--lookup_account url email passwd\n\
--create_account url email passwd name\n\
--read_cc_config\n\
--network_available\n\
--get_cc_status\n\
--quit\n"
);
exit(1);
@ -519,17 +521,25 @@ int main(int argc, char** argv) {
retval = rpc.quit();
} else if (!strcmp(cmd, "read_cc_config")) {
retval = rpc.read_cc_config();
} else if (!strcmp(cmd, "network_available")) {
retval = rpc.network_available();
} else if (!strcmp(cmd, "get_cc_status")) {
CC_STATUS cs;
retval = rpc.get_cc_status(cs);
if (!retval) {
retval = cs.network_status;
}
} else {
fprintf(stderr, "unrecognized command %s\n", cmd);
}
if (retval) {
if (retval < 0) {
show_error(retval);
}
#if defined(_WIN32) && defined(USE_WINSOCK)
WSACleanup();
#endif
return 0;
exit(retval);
}
const char *BOINC_RCSID_77f00010ab = "$Id$";