Expand description
Asynchronous library for retrieving IP address information
For retrieval of a single address, simply use get_ip and set
appropriate parameters.
In case a finer-grained control over the source of addresses is required,
individual Providers on which get_ip is based can be found in gip
(for global) and hostip (for local).
Module libc_getips contains a low-level function to receive all addresses
directly from the interfaces/adapters.
Modules§
- gip
- Implementations of
Providerthat receive global IP addresses from online services. This is an asynchronous rewrite of dalance/gip. - hostip
- Implementations of
Providerthat receive local IP addresses of the machine fromlibcAPIs and command-line helper programs (if available). - libc_
getips - Receive IP addresses of NICs with
libcAPIs.
Enums§
- Error
- Error type of IP retrieval methods.
- IpScope
- Scope of the IP to be received.
- IpType
- Type of global address.
Traits§
- Provider
- Any IP Provider.
Functions§
- get_ip
- Receive a IP address of family
ip_typethat has a scope ofip_scopeon an interface namednic.
Type Aliases§
- Result
- A
Resultalias where theErrvariant isgetip::Error.