Crate igd [] [src]

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.

Structs

Gateway

This structure represents a gateway found by the search functions.

XmlError

XML parsing error.

Enums

HttpError

A set of errors that can occur parsing HTTP streams.

PortMappingProtocol

Represents the protocols available for port mapping.

RequestError

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

SearchError

Errors than can occur while trying to find the gateway.

Functions

search_gateway

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

search_gateway_from

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

search_gateway_from_timeout

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

search_gateway_timeout

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