#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <sys/poll.h>
#include <curl/curl.h>
#include <ev.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
Go to the source code of this file.
|
static void | addsock (curl_socket_t s, CURL *easy, int action, GlobalInfo *g) |
|
static void | check_multi_info (GlobalInfo *g) |
|
static void | event_cb (EV_P_ struct ev_io *w, int revents) |
|
static void | fifo_cb (EV_P_ struct ev_io *w, int revents) |
|
static int | init_fifo (GlobalInfo *g) |
|
int | main (int argc, char **argv) |
|
static void | mcode_or_die (const char *where, CURLMcode code) |
|
static int | multi_timer_cb (CURLM *multi, long timeout_ms, GlobalInfo *g) |
|
static void | new_conn (char *url, GlobalInfo *g) |
|
static int | prog_cb (void *p, double dltotal, double dlnow, double ult, double uln) |
|
static void | remsock (SockInfo *f, GlobalInfo *g) |
|
static void | setsock (SockInfo *f, curl_socket_t s, CURL *e, int act, GlobalInfo *g) |
|
static int | sock_cb (CURL *e, curl_socket_t s, int what, void *cbp, void *sockp) |
|
static void | timer_cb (EV_P_ struct ev_timer *w, int revents) |
|
static size_t | write_cb (void *ptr, size_t size, size_t nmemb, void *data) |
|
#define MSG_OUT stdout /* Send info to stdout, change to stderr if you want */ |
static void event_cb |
( |
EV_P_ struct ev_io * |
w, |
|
|
int |
revents |
|
) |
| |
|
static |
static void fifo_cb |
( |
EV_P_ struct ev_io * |
w, |
|
|
int |
revents |
|
) |
| |
|
static |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
static void mcode_or_die |
( |
const char * |
where, |
|
|
CURLMcode |
code |
|
) |
| |
|
static |
static int multi_timer_cb |
( |
CURLM * |
multi, |
|
|
long |
timeout_ms, |
|
|
GlobalInfo * |
g |
|
) |
| |
|
static |
static void new_conn |
( |
char * |
url, |
|
|
GlobalInfo * |
g |
|
) |
| |
|
static |
static int prog_cb |
( |
void * |
p, |
|
|
double |
dltotal, |
|
|
double |
dlnow, |
|
|
double |
ult, |
|
|
double |
uln |
|
) |
| |
|
static |
static void timer_cb |
( |
EV_P_ struct ev_timer * |
w, |
|
|
int |
revents |
|
) |
| |
|
static |