(this is mostly a reminder for myself, you can ignore it if you want)
I'm considering making a rewrite + major version of this module, with the usual good practices for native addons.
Goals are:
Bundle libpcap, link statically.
Prebuilds for armv7, arm64, x86, x64 and for glibc and musl.
Use N-API, be context safe.
Avoid using uv_poll_t directly.
Rewrite in TypeScript.
Prevent loop starvation.
Move dissectors to other module; people may want to use the dissectors without the native addon and vice-versa.
Change API, make it mirror dgram.Socket and otherwise libpcap: use camelCase, enums, expose setters (allow changing settings without reopening session), expose ref/unref, explicit start / stop / close
Edit: A user reached out to me about this, so I wanted to point out that I'm not currently working on this and happy about other people taking over. If you do start work on these points, please comment or reference this issue since I might still do them if I find time.
(this is mostly a reminder for myself, you can ignore it if you want)
I'm considering making a rewrite + major version of this module, with the usual good practices for native addons. Goals are:
Edit: A user reached out to me about this, so I wanted to point out that I'm not currently working on this and happy about other people taking over. If you do start work on these points, please comment or reference this issue since I might still do them if I find time.