Registry / networking / libtins

libtins

JSON →
library4.5vcpkgunverified

High-level, multiplatform C++ network packet sniffing and crafting library

vcpkg install libtins
INSTALL
IMPORT
SIG · LIBTINS
L
libtins
networkingcppv4.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tins/tins.h
#include <tins/tins.h>

Sniff network packets on an interface

#include <tins/tins.h> #include <iostream> using namespace Tins; int main() { Sniffer sniffer("eth0"); sniffer.sniff_loop([](Packet& packet) { std::cout << "Got packet with size: " << packet.size() << std::endl; return true; }); return 0; }
Debug
Known issues
gotchaRequires root/admin privileges to capture packets
fix
Run the application with appropriate permissions (e.g., sudo on Linux)
affects: *
Upgrade
Version history
4.5latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

libtins — pip install libtins · libregistry