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.
