doc/designs/ddd/ddd-06-mem-uv.c
/*
 * ============================================================================
 * Example driver for the above code. This is just to demonstrate that the code
 * works and is not intended to be representative of a real application.
 */
Example driver for the above code. This is just to demonstrate that the code
works and is not intended to be representative of a real application.
Example driver for the above code . This is just to demonstrate that the code works and is not intended to be representative of a real application .
static void post_read(APP_CONN *conn, void *buf, size_t buf_len, void *arg)
{
    if (!buf_len) {
        free(buf);
        uv_stop(uv_default_loop());
        return;
    }
    fwrite(buf, 1, buf_len, stdout);
    free(buf);
}
static void post_read ( APP_CONN * conn , void * buf , size_t buf_len , void * arg ) { if ( ! buf_len ) { free ( buf ) ; uv_stop ( uv_default_loop ( ) ) ; return ; } fwrite ( buf , 1 , buf_len , stdout ) ; free ( buf ) ; }
Example driver for the above code.
Example driver for the above code .