Changes between Version 23 and Version 24 of BasicApi


Ignore:
Timestamp:
Dec 12, 2009, 9:04:41 PM (14 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v23 v24  
    262262== Standalone mode == #standalone
    263263
    264 BOINC applications can be run in "standalone" mode for testing, or under the control of the BOINC client. You might want your application to behave differently in the two cases. For example you might want to output debugging information if the application is running standalone. To determine if the application is running in standalone mode or under the control of the BOINC client, call
     264BOINC applications can be run in "standalone" mode for testing, or under the control of the BOINC client.
     265You might want your application to behave differently in the two cases.
     266 For example you might want to output debugging information if the application is running standalone.
     267To determine if the application is running in standalone mode or under the control of the BOINC client, call
    265268
    266269{{{
     
    284287== Requesting network connection == #network
    285288
    286 If your application needs to do network communication and it appears that there is no physical network connection (e.g. `gethostbyname()` fails for a valid name) then:
     289If your application needs to do network communication and it appears that there is no physical network connection
     290(e.g. `gethostbyname()` fails for a valid name) then:
    287291
    288292  * Call `boinc_need_network()`. This will alert the user that a network connection is needed.
     
    297301void boinc_network_done();
    298302}}}
     303
     304== Temporary exit ==
     305
     306If a GPU application fails to allocate GPU RAM, it may be a temporary problem
     307(non-BOINC programs have GPU RAM allocated).
     308In this case they should call
     309
     310{{{
     311#!c++
     312int boinc_temporary_exit(int delay);
     313}}}
     314
     315This will exit the application, and will tell the BOINC client to restart it
     316again in at least '''delay''' seconds.
     317(This works with 6.10.25+ client;
     318on other clients, it will potentially restart immediately).