I added the autoproxy settings to init_data.xml (probably not important unless you have corporate volunteers).
Anyway: the easiest way to get network suspend status is to use GUI RPC (get_cc_status()). You'll need to link your app with lib/gui_rpc_client.cpp and lib/gui_rpc_client_ops.cpp. If you're using libCurl, look at client/http_curl.cpp setup_proxy_session() for an example of how to use the proxy info. Also, if you want to enforce user bandwidth prefs (passed in APP_INIT_DATA) look at HTTP_OP::set_speed_limit(). -- David Rom Walton wrote: > As an aside, init_data.xml needs to be updated to include the autoproxy > settings as well. > > ----- Rom > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Willy de Zutter > Sent: Friday, September 18, 2009 9:42 AM > To: BOINC Dev Mailing List > Subject: [boinc_dev] Network suspend status > > I'm working on a project where the app itself needs network access. > > The application runs under the wrapper and does its own network access. > I > want to obey the user when he/she suspends the network or has network > access > limited. As far as I know there is no function to query whether or not > network access is permitted. Can anybody point me to the function, or if > it > doesn't exist, can it be added? > > I'm now parsing init_data.xml but it only has network access times, and > it's > also not updated frequently enough. > > Willy. > _______________________________________________ > boinc_dev mailing list > [email protected] > http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev > To unsubscribe, visit the above URL and > (near bottom of page) enter your email address. > _______________________________________________ > boinc_dev mailing list > [email protected] > http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev > To unsubscribe, visit the above URL and > (near bottom of page) enter your email address. _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
