dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

Allow for managed use with async I/O rather than threads #31

Open dankamongmen opened 4 years ago

dankamongmen commented 4 years ago

Currently, we always launch our TX and RX threads, which sit in blocking I/O. Some users might prefer to explicitly manage the I/O in the context of a non-blocking event system (e.g. epoll() or kqueue()). We ought add an option to the options struct allowing this mode to be requested, and add the necessary API.