mirror of https://github.com/BOINC/boinc.git
- 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:
parent
ab0fa32bcd
commit
91a5a79c59
|
@ -4782,3 +4782,8 @@ Janus 10 May 2007
|
||||||
/html/bt/inc/
|
/html/bt/inc/
|
||||||
binteger.php
|
binteger.php
|
||||||
|
|
||||||
|
David 10 May 2007
|
||||||
|
- boinc_cmd: add --network_available and --get_cc_status options
|
||||||
|
|
||||||
|
lib/
|
||||||
|
boinc_cmd.C
|
||||||
|
|
|
@ -185,6 +185,16 @@ array('inst_nB_v13.exe',
|
||||||
);
|
);
|
||||||
|
|
||||||
$linux = array(
|
$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(
|
array(
|
||||||
'http://www.vanheusden.com/boinctail/',
|
'http://www.vanheusden.com/boinctail/',
|
||||||
'BOINCTail',
|
'BOINCTail',
|
||||||
|
|
|
@ -93,6 +93,8 @@ Commands:\n\
|
||||||
--lookup_account url email passwd\n\
|
--lookup_account url email passwd\n\
|
||||||
--create_account url email passwd name\n\
|
--create_account url email passwd name\n\
|
||||||
--read_cc_config\n\
|
--read_cc_config\n\
|
||||||
|
--network_available\n\
|
||||||
|
--get_cc_status\n\
|
||||||
--quit\n"
|
--quit\n"
|
||||||
);
|
);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -519,17 +521,25 @@ int main(int argc, char** argv) {
|
||||||
retval = rpc.quit();
|
retval = rpc.quit();
|
||||||
} else if (!strcmp(cmd, "read_cc_config")) {
|
} else if (!strcmp(cmd, "read_cc_config")) {
|
||||||
retval = rpc.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 {
|
} else {
|
||||||
fprintf(stderr, "unrecognized command %s\n", cmd);
|
fprintf(stderr, "unrecognized command %s\n", cmd);
|
||||||
}
|
}
|
||||||
if (retval) {
|
if (retval < 0) {
|
||||||
show_error(retval);
|
show_error(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32) && defined(USE_WINSOCK)
|
#if defined(_WIN32) && defined(USE_WINSOCK)
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
exit(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *BOINC_RCSID_77f00010ab = "$Id$";
|
const char *BOINC_RCSID_77f00010ab = "$Id$";
|
||||||
|
|
Loading…
Reference in New Issue