#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <stdlib.h>
#include <errno.h>
#include <curl/curl.h>
Go to the source code of this file.
Classes |
struct | fcurl_data |
Defines |
#define | FGETSFILE "fgets.test" |
#define | FREADFILE "fread.test" |
#define | REWINDFILE "rewind.test" |
Typedefs |
typedef struct fcurl_data | URL_FILE |
Enumerations |
enum | fcurl_type_e { CFTYPE_NONE = 0,
CFTYPE_FILE = 1,
CFTYPE_CURL = 2
} |
Functions |
static int | fill_buffer (URL_FILE *file, size_t want) |
int | main (int argc, char *argv[]) |
int | url_fclose (URL_FILE *file) |
int | url_feof (URL_FILE *file) |
char * | url_fgets (char *ptr, size_t size, URL_FILE *file) |
URL_FILE * | url_fopen (const char *url, const char *operation) |
size_t | url_fread (void *ptr, size_t size, size_t nmemb, URL_FILE *file) |
void | url_rewind (URL_FILE *file) |
static int | use_buffer (URL_FILE *file, size_t want) |
static size_t | write_callback (char *buffer, size_t size, size_t nitems, void *userp) |
Variables |
CURLM * | multi_handle |
Define Documentation
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
CFTYPE_NONE |
|
CFTYPE_FILE |
|
CFTYPE_CURL |
|
Definition at line 60 of file fopen.c.
Function Documentation
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static size_t write_callback |
( |
char * |
buffer, |
|
|
size_t |
size, |
|
|
size_t |
nitems, |
|
|
void * |
userp |
|
) |
| [static] |
Variable Documentation