get_if_addrs

Crates.ioget_if_addrs
lib.rsget_if_addrs
version0.5.3
sourcesrc
created_at2016-01-10 18:21:12.447013
updated_at2018-06-21 12:37:17.229115
descriptionReturn interface IP addresses on Posix and windows systems
homepagehttp://maidsafe.net
repositoryhttps://github.com/maidsafe/get_if_addrs
max_upload_size
id3863
size36,908
David Irvine (dirvine)

documentation

https://docs.rs/get_if_addrs

README

get_if_addrs

Maintainer: Spandan Sharma (spandan.sharma@maidsafe.net)

Crate Documentation Linux/OS X Windows Issues
Documentation Build Status Build status Stories in Ready
MaidSafe website SAFE Dev Forum SAFE Network Forum

Overview

Retrieve network interface info for all interfaces on the system.

// List all of the machine's network interfaces
for iface in get_if_addrs::get_if_addrs().unwrap() {
    println!("{:#?}", iface);
}

Todo Items

  • Create an API for responding to changes in network interfaces.

License

This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.

Contribution

Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.

Commit count: 127

cargo fmt