Crate ig[−][src]
This library allows you to communicate with an IG 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
AddAnyPortError | Errors returned by |
AddPortError | Errors returned by |
GetExternalIpError | Errors returned by |
HttpError | A set of errors that can occur parsing HTTP streams. |
PortMappingProtocol | Represents the protocols available for port mapping. |
RemovePortError | Errors returned by |
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. |