"Fossies" - the Fresh Open Source Software Archive

Member "zsync-0.6.2/http.h" (16 Sep 2010, 1228 Bytes) of package /linux/privat/old/zsync-0.6.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "http.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *   http.h - simple HTTP client for zsync
    3  *
    4  *   Copyright (C) 2004,2005,2009 Colin Phipps <cph@moria.org.uk>
    5  *
    6  *   This program is free software; you can redistribute it and/or modify
    7  *   it under the terms of the Artistic License v2 (see the accompanying 
    8  *   file COPYING for the full license terms), or, at your option, any later 
    9  *   version of the same license.
   10  *
   11  *   This program is distributed in the hope that it will be useful,
   12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  *   COPYING file for details.
   15  */
   16 
   17 
   18 
   19 extern char *referer;
   20 
   21 int set_proxy_from_string(const char* s);
   22 
   23 FILE* http_get(const char* orig_url, char** track_referer, const char* tfname);
   24 
   25 struct range_fetch;
   26 
   27 struct range_fetch* range_fetch_start(const char* orig_url);
   28 void range_fetch_addranges(struct range_fetch* rf, off_t* ranges, int nranges);
   29 int get_range_block(struct range_fetch* rf, off_t* offset, unsigned char* data, size_t dlen);
   30 off_t range_fetch_bytes_down(const struct range_fetch* rf);
   31 void range_fetch_end(struct range_fetch* rf);
   32 
   33 void add_auth(char* host, char* user, char* pass);
   34 
   35 /* base64.c */
   36 char* base64(const char*);
   37