Changes between Version 1 and Version 2 of BasicApi


Ignore:
Timestamp:
Apr 23, 2007, 4:46:19 PM (17 years ago)
Author:
Nicolas
Comment:

Changed the links to the other APIs (reason: http://w3.org/QA/Tips/noClickHere), and other quite minor changes

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v1 v2  
    44The BOINC API is a set of C++ functions. Most of the functions have a C interface, so that they can be used from programs written in C and other languages. Unless otherwise specified, the functions return an integer error code; zero indicates success.
    55
    6 BOINC applications may generate graphics, allowing them to provide a screensaver. This API is described [GraphicsApi here].
    7 
    8 BOINC applications may consist of several programs that are executed in sequence; these are called compound applications. This API is described [http://boinc.berkeley.edu/compound_app.php here].
     6BOINC applications may generate graphics, allowing them to provide a screensaver. See the [GraphicsApi graphics API].
     7
     8BOINC applications may consist of several programs that are executed in sequence; these are called compound applications. See the [GraphicsApi compound application API].
    99
    1010== Initialization and termination ==
     
    7171== I/O wrappers ==
    7272
    73 Applications should replace fopen() calls with
     73Applications should replace `fopen()` calls with
    7474
    7575{{{
     
    7777}}}
    7878
    79 This deals with platform-specific problems. On Windows, where security and indexing programs can briefly lock files, boinc_fopen() does several retries at 1-second intervals. On Unix, where signals can cause fopen() to fail with EINTR, boinc_fopen checks for this and does a few retries; it also sets the 'close-on-exec' flag.
     79This deals with platform-specific problems. On Windows, where security and indexing programs can briefly lock files, `boinc_fopen()` does several retries at 1-second intervals. On Unix, where signals can cause `fopen()` to fail with EINTR, `boinc_fopen` checks for this and does a few retries; it also sets the 'close-on-exec' flag.
    8080
    8181== Checkpointing ==
     
    108108== Atomic file update ==
    109109
    110 To facilitate atomic checkpoint, an application can write to output and state files using the MFILE class.
     110To facilitate atomic checkpoint, an application can write to output and state files using the `MFILE` class.
    111111
    112112{{{
     
    155155}}}
    156156
    157 returns the last value set, or -1 if none has been set (this would typically be called from graphics code).
     157returns the last value set, or `-1` if none has been set (this would typically be called from graphics code).
    158158
    159159The following functions get information from the core client; this information may be useful for graphics.
     
    208208
    209209||'''core version'''||The version number of the core client||
    210 ||'''app_name'''||The application name (from the server's DB||
     210||'''app_name'''||The application name (from the server's DB)||
    211211||'''project_preferences'''||An XML string containing the user's project-specific preferences.||
    212212||'''user_name'''||The user's 'screen name' on this project.||
     
    233233== Requesting network connection ==
    234234
    235 If it appears that there is no physical network connection (e.g. gethostbyname() fails for a valid name) then
     235If it appears that there is no physical network connection (e.g. gethostbyname() fails for a valid name) then:
    236236
    237237    * Call `boinc_need_network()`. This will alert the user that a network connection is needed.