Alexander Polakov

Results 41 comments of Alexander Polakov

>And what is more strange is that if I run open Neovide from command line it will open it, but double clicking on the App bundle will not result in...

>and it also supports exporting its own fd Exporting fd seems tricky to-do in cross-platform way. It would work with proper epoll, but what about wepoll? >and dispatching events when...

@little-dude yes! `smol` only requires `AsRawFd` to [insert socket into reactor](https://docs.rs/smol/0.1.11/src/smol/async_io.rs.html#143) and then you register interest in events by using [`read_with_*/write_with_*`](https://docs.rs/smol/0.1.11/src/smol/async_io.rs.html#373-385) methods. You can think of `Async` as `PollEvented` in...

>BPF does not make sense for eg. the netmap backend Actually it makes a lot of sense, I used libpcap BPF compiler + bpfjit in [syncookied](https://github.com/LTD-Beget/syncookied) to filter packets. But...

I'm currently working on [mio-afpacket](https://github.com/polachok/mio-afpacket) crate which would provide AF_PACKET integration for `mio` event loop. Libpnet can be used on top of that. May be of interest to you.

I wrapped `netmap-sys` directly for my project and provided an API that lets you do that. I wouldn't say it's well designed but you may find it interesting. Here: https://gist.github.com/polachok/5238b877e6d5b5f367c74e89576e5a57

I just put it in a repo: https://github.com/polachok/netmap-rs. Feel free to make a PR :)

Understood, I'll send a PR for this later

I'm not sure if such implementation-specific details like `tun_pi` belong to core libpnet library. You can implement it in tun-rs instead (see my `pnetlink` repo for an example). Or just...