HomePort
Functions | Variables
big_data_test.c File Reference
Include dependency graph for big_data_test.c:

Go to the source code of this file.

Functions

static int basic_get_test (char *url)
 
static size_t data_from_curl (char *buffer, size_t buffer_size, size_t nmemb, char **userdata)
 
static size_t data_to_curl (void *ptr, size_t size, size_t nmemb, void *userdata)
 
static void exit_cb (EV_P_ ev_async *watcher, int revents)
 Exit callback for async watcher (Webserver) More...
 
static void exit_handler (int sig)
 Handle correct exiting. More...
 
int main (int argc, char *argv[])
 Main function. More...
 
static int on_connect (hpd_ws_t *instance, hpd_ws_conn_t *conn, void *ws_ctx, void **data)
 On connect callback for tcpd. More...
 
static int on_disconnect (hpd_ws_t *instance, hpd_ws_conn_t *conn, void *ws_ctx, void **data)
 On disconnect callback for tcpd. More...
 
static int on_receive (hpd_ws_t *instance, hpd_ws_conn_t *conn, void *ctx, void **data, const char *buf, size_t len)
 On receive callback for tcpd. More...
 
static char * simple_get_request (char *url)
 
static int test_thread ()
 Test thread. More...
 
static void * webserver_thread (void *arg)
 Webserver thread. More...
 

Variables

static char * big_data
 
static struct ev_async exit_watcher
 
static struct ev_loop * loop
 
static int started = 0
 
static hpd_ws_t * ws = NULL
 

Function Documentation

static int basic_get_test ( char *  url)
static

Definition at line 116 of file big_data_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static size_t data_from_curl ( char *  buffer,
size_t  buffer_size,
size_t  nmemb,
char **  userdata 
)
static

Definition at line 43 of file big_data_test.c.

Here is the caller graph for this function:

static size_t data_to_curl ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  userdata 
)
static

Definition at line 53 of file big_data_test.c.

Here is the caller graph for this function:

static void exit_cb ( EV_P_ ev_async *  watcher,
int  revents 
)
static

Exit callback for async watcher (Webserver)

Definition at line 212 of file big_data_test.c.

Here is the caller graph for this function:

static void exit_handler ( int  sig)
static

Handle correct exiting.

Definition at line 205 of file big_data_test.c.

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Main function.

Definition at line 262 of file big_data_test.c.

Here is the call graph for this function:

static int on_connect ( hpd_ws_t *  instance,
hpd_ws_conn_t *  conn,
void *  ws_ctx,
void **  data 
)
static

On connect callback for tcpd.

Definition at line 159 of file big_data_test.c.

Here is the caller graph for this function:

static int on_disconnect ( hpd_ws_t *  instance,
hpd_ws_conn_t *  conn,
void *  ws_ctx,
void **  data 
)
static

On disconnect callback for tcpd.

Definition at line 197 of file big_data_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int on_receive ( hpd_ws_t *  instance,
hpd_ws_conn_t *  conn,
void *  ctx,
void **  data,
const char *  buf,
size_t  len 
)
static

On receive callback for tcpd.

Definition at line 170 of file big_data_test.c.

Here is the caller graph for this function:

static char* simple_get_request ( char *  url)
static

Definition at line 76 of file big_data_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_thread ( )
static

Test thread.

Definition at line 132 of file big_data_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void* webserver_thread ( void *  arg)
static

Webserver thread.

Definition at line 225 of file big_data_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

char* big_data
static

Definition at line 36 of file big_data_test.c.

struct ev_async exit_watcher
static

Definition at line 41 of file big_data_test.c.

struct ev_loop* loop
static

Definition at line 40 of file big_data_test.c.

int started = 0
static

Definition at line 38 of file big_data_test.c.

hpd_ws_t* ws = NULL
static

Definition at line 39 of file big_data_test.c.