mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.89k stars 374 forks source link

Python bindings #457

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

I'm currently writing a sniffer tool for my master thesis and stumbled over this awesome project. Due to the performance issues of pyshark and scapy on heavy load I would like to use this lib from my python code. I've read a bit into python bindings and asked myself whether there is someone in the community who has some hints what's the easiest way to build the bindings and call the lib from python code. Is it recommended to use one of the tools described here? Has someone experiences using this?

Any help is much appreciated.

Thanks a lot in advance for this awesome project.

mfontanini commented 2 years ago

I'd suggest either:

Hope this helps!

ghost commented 2 years ago

Thank you very much. I will think about your suggestions. Currently I use a TShark process directly for sniffing. Let's see how far that takes us.