doc/designs/ddd/ddd-06-mem-uv.c
/*
 * The application wants to write. The callback is called once the
 * write is complete. The callback should free the buffer.
 */
The application wants to write. The callback is called once the
write is complete. The callback should free the buffer.
The application wants to write . The callback is called once the write is complete . The callback should free the buffer .
int app_write(APP_CONN *conn, const void *buf, size_t buf_len, app_write_cb *cb, void *arg)
{
    write_deferred(conn, buf, buf_len, cb, arg);
    handle_pending_writes(conn);
    return buf_len;
}
int app_write ( APP_CONN * conn , const void * buf , size_t buf_len , app_write_cb * cb , void * arg ) { write_deferred ( conn , buf , buf_len , cb , arg ) ; handle_pending_writes ( conn ) ; return buf_len ; }
The application wants to write.
The application wants to write .