igd 0.0.3

Internet Gateway Protocol client
docs.rs failed to build igd-0.0.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: igd-0.12.1

Internet Gateway Device client

This is a simple library that communicates with an UPNP enabled gateway device (a router). Contributions and feedback are welcome. Currently, you can only search the gateway and request the gateway's address. See the examples/ folder for a demo.

Contributions are welcome! This is pretty delicate to test, please submit an issue if you have trouble using this.

API

/// Query the device for it's external ip address.
fn get_external_ip<A: ToSocketAddr>(addr: A) -> Result<IpAddr, RequestError>
/// Bind the UDP socket to all interfaces
fn search_gateway() -> Result<SocketAddr, SearchError>
/// Bind the UDP socket to this ip address
fn search_gateway_from(ip: Ipv4Addr) -> Result<SocketAddr, SearchError>

License

MIT