#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <curl/curl.h>
Go to the source code of this file.
Classes | |
struct | input |
Defines | |
#define | CURLPIPE_MULTIPLEX 0 |
#define | NUM_HANDLES 1000 |
Functions | |
static void | dump (const char *text, int num, unsigned char *ptr, size_t size, char nohex) |
static int | hnd2num (CURL *hnd) |
int | main (int argc, char **argv) |
static int | my_trace (CURL *handle, curl_infotype type, char *data, size_t size, void *userp) |
static size_t | read_callback (void *ptr, size_t size, size_t nmemb, void *userp) |
static void | setup (CURL *hnd, int num, const char *upload) |
Variables | |
void * | curl_hnd [NUM_HANDLES] |
struct input | indata [NUM_HANDLES] |
int | num_transfers |
#define CURLPIPE_MULTIPLEX 0 |
Definition at line 43 of file http2-upload.c.
#define NUM_HANDLES 1000 |
Definition at line 46 of file http2-upload.c.
static void dump | ( | const char * | text, |
int | num, | ||
unsigned char * | ptr, | ||
size_t | size, | ||
char | nohex | ||
) | [static] |
Definition at line 64 of file http2-upload.c.
Definition at line 53 of file http2-upload.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 240 of file http2-upload.c.
static int my_trace | ( | CURL * | handle, |
curl_infotype | type, | ||
char * | data, | ||
size_t | size, | ||
void * | userp | ||
) | [static] |
Definition at line 110 of file http2-upload.c.
static size_t read_callback | ( | void * | ptr, |
size_t | size, | ||
size_t | nmemb, | ||
void * | userp | ||
) | [static] |
Definition at line 172 of file http2-upload.c.
Definition at line 182 of file http2-upload.c.
void* curl_hnd[NUM_HANDLES] |
Definition at line 48 of file http2-upload.c.
struct input indata[NUM_HANDLES] |
Definition at line 180 of file http2-upload.c.
int num_transfers |
Definition at line 49 of file http2-upload.c.