Crate igd

source · []
Expand description

This library allows you to communicate with an IGD enabled device. Use one of the search_gateway functions to obtain a Gateway object. You can then communicate with the device via this object.

Modules

Contains Tokio compatible implementations for finding a gateway and configuring port mappings

Structs

This structure represents a gateway found by the search functions.

An XML parsing error.

Enums

Errors returned by Gateway::add_any_port and Gateway::get_any_address

Errors returned by Gateway::add_port

Errors returned by Gateway::get_external_ip

A set of errors that can occur parsing HTTP streams.

Represents the protocols available for port mapping.

Errors returned by Gateway::remove_port

Errors that can occur when sending the request to the gateway.

Errors than can occur while trying to find the gateway.

Functions

Search gateway, bind to all interfaces and use a timeout of 3 seconds.

Search gateway, bind to the given interface and use a time of 3 seconds.

Search gateway, bind to the given interface and use the given duration for the timeout.

Search gateway, bind to all interfaces and use the given duration for the timeout.