Classes | Defines | Typedefs | Functions
ghiper.c File Reference
#include <glib.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <curl/curl.h>
Include dependency graph for ghiper.c:

Go to the source code of this file.

Classes

struct  _ConnInfo
struct  _GlobalInfo
struct  _SockInfo

Defines

#define BUF_SIZE   1024
#define MSG_OUT   g_print /* Change to "g_error" to write to stderr */
#define SHOW_PROGRESS   0 /* Set to non-zero to enable progress callback */
#define SHOW_VERBOSE   0 /* Set to non-zero for libcurl messages */

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 gboolean event_cb (GIOChannel *ch, GIOCondition condition, gpointer data)
static gboolean fifo_cb (GIOChannel *ch, GIOCondition condition, gpointer data)
int init_fifo (void)
int main (int argc, char **argv)
static void mcode_or_die (const char *where, CURLMcode code)
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 gboolean timer_cb (gpointer data)
static int update_timeout_cb (CURLM *multi, long timeout_ms, void *userp)
static size_t write_cb (void *ptr, size_t size, size_t nmemb, void *data)

Define Documentation

#define BUF_SIZE   1024
#define MSG_OUT   g_print /* Change to "g_error" to write to stderr */

Definition at line 66 of file ghiper.c.

#define SHOW_PROGRESS   0 /* Set to non-zero to enable progress callback */

Definition at line 68 of file ghiper.c.

#define SHOW_VERBOSE   0 /* Set to non-zero for libcurl messages */

Definition at line 67 of file ghiper.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 226 of file ghiper.c.

static void check_multi_info ( GlobalInfo g) [static]

Definition at line 117 of file ghiper.c.

static gboolean event_cb ( GIOChannel *  ch,
GIOCondition  condition,
gpointer  data 
) [static]

Definition at line 171 of file ghiper.c.

static gboolean fifo_cb ( GIOChannel *  ch,
GIOCondition  condition,
gpointer  data 
) [static]

Definition at line 321 of file ghiper.c.

int init_fifo ( void  )

Definition at line 373 of file ghiper.c.

int main ( int  argc,
char **  argv 
)

Definition at line 404 of file ghiper.c.

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

Definition at line 97 of file ghiper.c.

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

Definition at line 284 of file ghiper.c.

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

Definition at line 275 of file ghiper.c.

static void remsock ( SockInfo f) [static]

Definition at line 198 of file ghiper.c.

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

Definition at line 210 of file ghiper.c.

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

Definition at line 237 of file ghiper.c.

static gboolean timer_cb ( gpointer  data) [static]

Definition at line 143 of file ghiper.c.

static int update_timeout_cb ( CURLM multi,
long  timeout_ms,
void *  userp 
) [static]

Definition at line 156 of file ghiper.c.

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

Definition at line 265 of file ghiper.c.



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