~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to client/http_curl.h

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
// To view the GNU Lesser General Public License visit
16
16
// http://www.gnu.org/copyleft/lesser.html
17
17
// or write to the Free Software Foundation, Inc.,
18
 
// 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 
20
20
// HTTP_OP represents an HTTP operation.
21
21
// There are variants for GET and POST,
63
63
    PROXY_INFO pi;
64
64
 
65
65
        char m_url[256];  
 
66
        char m_curl_ca_bundle_location[256]; // string needed for ssl support
66
67
        char szCurlProxyUserPwd[128]; // string needed for proxy username/password
67
68
 
68
69
    int content_length;
78
79
        struct curl_httppost *pcurlFormEnd; // a pointer to a form item for POST
79
80
        unsigned char* pByte;  // pointer to bytes for reading via libcurl_read function
80
81
 
81
 
        long lSeek;  // this is a pointer within the file we're reading
 
82
        long lSeek;
 
83
        // offset within the file or memory buffer we're reading,
82
84
    char infile[256];
83
85
    char outfile[256];
84
86
    char error_msg[256];    // put Curl error message here
95
97
        // otherwise breaks on 64-bit machines
96
98
    double start_time;
97
99
    double bytes_xferred;
98
 
        // uncompressed bytes transferred in this session
 
100
        // Uncompressed bytes transferred.
 
101
        // In the case of "post2" this includes only the file part
 
102
        // In the case of restartable ops (file upload/download)
 
103
        // this includes previous count (i.e. file offset)
99
104
        double start_bytes_xferred;
 
105
        // bytes_xferred at the start of this operation;
 
106
        // used to compute transfer speed
100
107
    double xfer_speed;
101
108
        // tranfer rate based on elapsed time and bytes_xferred
102
109
        // (hence doesn't reflect compression; used only for GUI)