Classes | Macros | Typedefs | Functions | Variables
hiperfifo.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 <event2/event.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <errno.h>
Include dependency graph for hiperfifo.c:

Go to the source code of this file.

Classes

struct  _ConnInfo
 
struct  _GlobalInfo
 
struct  _SockInfo
 

Macros

#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 clean_fifo (GlobalInfo *g)
 
static void event_cb (int fd, short kind, void *userp)
 
static void fifo_cb (int fd, short event, void *arg)
 
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)
 
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 (int fd, short kind, void *userp)
 
static size_t write_cb (void *ptr, size_t size, size_t nmemb, void *data)
 

Variables

static const char * fifo = "hiper.fifo"
 

Macro Definition Documentation

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

Definition at line 74 of file hiperfifo.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 260 of file hiperfifo.c.

static void check_multi_info ( GlobalInfo g)
static

Definition at line 161 of file hiperfifo.c.

static void clean_fifo ( GlobalInfo g)
static

Definition at line 413 of file hiperfifo.c.

static void event_cb ( int  fd,
short  kind,
void *  userp 
)
static

Definition at line 189 of file hiperfifo.c.

static void fifo_cb ( int  fd,
short  event,
void *  arg 
)
static

Definition at line 359 of file hiperfifo.c.

static int init_fifo ( GlobalInfo g)
static

Definition at line 382 of file hiperfifo.c.

int main ( int  argc,
char **  argv 
)

Definition at line 420 of file hiperfifo.c.

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

Definition at line 135 of file hiperfifo.c.

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

Definition at line 112 of file hiperfifo.c.

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

Definition at line 324 of file hiperfifo.c.

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

Definition at line 311 of file hiperfifo.c.

static void remsock ( SockInfo f)
static

Definition at line 229 of file hiperfifo.c.

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

Definition at line 241 of file hiperfifo.c.

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

Definition at line 270 of file hiperfifo.c.

static void timer_cb ( int  fd,
short  kind,
void *  userp 
)
static

Definition at line 213 of file hiperfifo.c.

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

Definition at line 300 of file hiperfifo.c.

Variable Documentation

const char* fifo = "hiper.fifo"
static

Definition at line 381 of file hiperfifo.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17