Classes | Defines | Typedefs | Functions
evhiperfifo.c File Reference
#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>
Include dependency graph for evhiperfifo.c:

Go to the source code of this file.

Classes

struct  _ConnInfo
struct  _GlobalInfo
struct  _SockInfo

Defines

#define DPRINT(x...)   printf(x)
#define MSG_OUT   stdout /* Send info to stdout, change to stderr if you want */

Typedefs

typedef struct _ConnInfo ConnInfo
typedef struct _GlobalInfo GlobalInfo
typedef struct _SockInfo SockInfo

Functions

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 Documentation

#define DPRINT (   x...)    printf(x)

Definition at line 76 of file evhiperfifo.c.

#define MSG_OUT   stdout /* Send info to stdout, change to stderr if you want */

Definition at line 78 of file evhiperfifo.c.


Typedef Documentation

typedef struct _ConnInfo ConnInfo
typedef struct _GlobalInfo GlobalInfo
typedef struct _SockInfo SockInfo

Function Documentation

static void addsock ( curl_socket_t  s,
CURL easy,
int  action,
GlobalInfo g 
) [static]

Definition at line 267 of file evhiperfifo.c.

static void check_multi_info ( GlobalInfo g) [static]

Definition at line 173 of file evhiperfifo.c.

static void event_cb ( EV_P_ struct ev_io *  w,
int  revents 
) [static]

Definition at line 201 of file evhiperfifo.c.

static void fifo_cb ( EV_P_ struct ev_io *  w,
int  revents 
) [static]

Definition at line 371 of file evhiperfifo.c.

static int init_fifo ( GlobalInfo g) [static]

Definition at line 391 of file evhiperfifo.c.

int main ( int  argc,
char **  argv 
)

Definition at line 423 of file evhiperfifo.c.

static void mcode_or_die ( const char *  where,
CURLMcode  code 
) [static]

Definition at line 133 of file evhiperfifo.c.

static int multi_timer_cb ( CURLM multi,
long  timeout_ms,
GlobalInfo g 
) [static]

Definition at line 118 of file evhiperfifo.c.

static void new_conn ( char *  url,
GlobalInfo g 
) [static]

Definition at line 333 of file evhiperfifo.c.

static int prog_cb ( void *  p,
double  dltotal,
double  dlnow,
double  ult,
double  uln 
) [static]

Definition at line 320 of file evhiperfifo.c.

static void remsock ( SockInfo f,
GlobalInfo g 
) [static]

Definition at line 233 of file evhiperfifo.c.

static void setsock ( SockInfo f,
curl_socket_t  s,
CURL e,
int  act,
GlobalInfo g 
) [static]

Definition at line 246 of file evhiperfifo.c.

static int sock_cb ( CURL e,
curl_socket_t  s,
int  what,
void *  cbp,
void *  sockp 
) [static]

Definition at line 277 of file evhiperfifo.c.

static void timer_cb ( EV_P_ struct ev_timer *  w,
int  revents 
) [static]

Definition at line 219 of file evhiperfifo.c.

static size_t write_cb ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  data 
) [static]

Definition at line 309 of file evhiperfifo.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08