Hello!

You may want to try following scenario:

1. Adding uv_backend_fd() to the libevent's loop
2. On change on that fd do: uv_run(UV_RUN_NOWAIT)

On Thu, Jan 23, 2014 at 4:51 AM, Ramesh Rayaprolu
<[email protected]> wrote:
> I am trying to do async File IO using libuv (uv_fs_* api's).
>
> I need to embed this File IO into an application which uses libevent and has
> its own main-loop.
>
> I was looking for such examples, and did not find any. Please let me know if
> someone has it.
>
> The problem that I am facing is like this --
> uv_fs_open, uv_fs_read have their own callbacks (which use uv_fs_t * as
> argument).
> But libevent has its own callback and that call back cannot get this
> "uv_fs_t *"
>
> So, whenever I add the uv_backend_fd to libevent, and as soon as I do
> uv_fs_open, I reach the libevent callback, and I see that the uv_fs_t * is
> not yet updated.
> Thus , I cannot get the uv_file (fd) to further read/write on this.
>
> Any help or suggestions on this is greatly appreciated.
>
> Thanks and Best Regards,
> Ramesh
>
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to