#networking #profile #ffi #usage #netinfo

netinfo-ffi

C FFI for netinfo, which groups network usage by process

2 unstable releases

Uses old Rust 2015

0.5.0 Sep 12, 2018
0.3.0 Dec 16, 2016

#15 in #usage

MIT license

215KB
612 lines

Netinfo-FFI

This is the C foreign function interface, so that you can call netinfo from C. Netinfo allows you to group the TCP/UDP network usage by process without a special kernel module.

Documentation of Rust library

Please leave feedback, bug reports and feature request that are not strictly related to the FFI at the main netinfo library.

How to build

Install the latest Cargo/Rust:

$ git clone https://github.com/ChangSpivey/netinfo-ffi
$ cd netinfo-ffi
$ cargo build --release

There is now a static library ./target/release/libnetinfo.a and a dynamic library ./target/release/libnetinfo.so.


lib.rs:

This is the C FFI for the netinfo library. See documentation of the main library for more information.

Dependencies

~3.5–5.5MB
~106K SLoC