cotton-netif

Crates.iocotton-netif
lib.rscotton-netif
version0.0.5
sourcesrc
created_at2023-01-22 14:34:28.089837
updated_at2024-09-27 12:56:34.395931
descriptionEnumerating available network interfaces and their IP addresses
homepagehttps://github.com/pdh11/cotton
repositoryhttps://github.com/pdh11/cotton
max_upload_size
id765154
size90,452
Peter Hartley (pdh11)

documentation

README

CI status codecov dependency status Crates.io Crates.io docs.rs License: CC0-1.0

cotton-netif

Part of the Cotton project.

Enumerating network interfaces and their IP addresses

The cotton-netif library crate encapsulates the obtaining of the host’s network interfaces and IP addresses. It supports both static/synchronous listing (i.e., a snapshot of the current list of network interfaces) using get_interfaces and dynamic/asynchronous listing (i.e., getting events as network interfaces and addresses come and go) using get_interfaces_async.

At present this crate only works on Linux (and maybe BSD) but the structure is such that adding compatibility with other platforms in future, shouldn’t require changes to any client code.

Library documentation is on docs.rs.

Commit count: 472

cargo fmt