get_if_addrs 0.5.1

Return interface IP addresses on Posix and windows systems
Documentation

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

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MaidSafe Contributor Agreement (CONTRIBUTOR), shall be dual licensed as above, and you agree to be bound by the terms of the MaidSafe Contributor Agreement.