Classes | Defines | Typedefs | Functions | Variables
asiohiper.cpp File Reference
#include <curl/curl.h>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <iostream>
Include dependency graph for asiohiper.cpp:

Go to the source code of this file.

Classes

struct  _ConnInfo
struct  _GlobalInfo

Defines

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

Typedefs

typedef struct _ConnInfo ConnInfo
typedef struct _GlobalInfo GlobalInfo

Functions

static void addsock (curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
static void check_multi_info (GlobalInfo *g)
static int close_socket (void *clientp, curl_socket_t item)
static void event_cb (GlobalInfo *g, boost::asio::ip::tcp::socket *tcp_socket, int action)
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 curl_socket_t opensocket (void *clientp, curlsocktype purpose, struct curl_sockaddr *address)
static int prog_cb (void *p, double dltotal, double dlnow, double ult, double uln)
static void remsock (int *f, GlobalInfo *g)
static void setsock (int *fdp, 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)
boost::asio::deadline_timer timer (io_service)
static void timer_cb (const boost::system::error_code &error, GlobalInfo *g)
static size_t write_cb (void *ptr, size_t size, size_t nmemb, void *data)

Variables

boost::asio::io_service io_service
std::map< curl_socket_t,
boost::asio::ip::tcp::socket * > 
socket_map

Define Documentation

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

Definition at line 53 of file asiohiper.cpp.


Typedef Documentation

typedef struct _ConnInfo ConnInfo
typedef struct _GlobalInfo GlobalInfo

Function Documentation

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

Definition at line 267 of file asiohiper.cpp.

static void check_multi_info ( GlobalInfo g) [static]

Definition at line 150 of file asiohiper.cpp.

static int close_socket ( void *  clientp,
curl_socket_t  item 
) [static]

Definition at line 382 of file asiohiper.cpp.

static void event_cb ( GlobalInfo g,
boost::asio::ip::tcp::socket *  tcp_socket,
int  action 
) [static]

Definition at line 179 of file asiohiper.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 442 of file asiohiper.cpp.

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

Definition at line 105 of file asiohiper.cpp.

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

Definition at line 81 of file asiohiper.cpp.

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

Definition at line 398 of file asiohiper.cpp.

static curl_socket_t opensocket ( void *  clientp,
curlsocktype  purpose,
struct curl_sockaddr address 
) [static]

Definition at line 345 of file asiohiper.cpp.

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

Definition at line 330 of file asiohiper.cpp.

static void remsock ( int *  f,
GlobalInfo g 
) [static]

Definition at line 214 of file asiohiper.cpp.

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

Definition at line 224 of file asiohiper.cpp.

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

Definition at line 277 of file asiohiper.cpp.

boost::asio::deadline_timer timer ( io_service  )
static void timer_cb ( const boost::system::error_code &  error,
GlobalInfo g 
) [static]

Definition at line 199 of file asiohiper.cpp.

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

Definition at line 313 of file asiohiper.cpp.


Variable Documentation

Definition at line 58 of file asiohiper.cpp.

std::map<curl_socket_t, boost::asio::ip::tcp::socket *> socket_map

Definition at line 60 of file asiohiper.cpp.



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