Hello!

Would some kind soul please advise on how to integrate libeio into my
libev event loop?

Here is how I would like to manage the program flow:

1) fire libeio event to read N bytes from a file, at offset OFF
2) in libeio read callback, read N bytes and fire libev write event on socket
3) in libev write callback, write these N bytes to the socket.

I have a project on github that uses libev; my libev write callback
can be found here:

https://github.com/boxerab/DIcomStream/blob/master/src/DicomStream.cpp#L171

Many thanks,
Aaron

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to