ocean.sys.GetIfAddrs

Functions to get IP address from the given interface.

Members

Classes

ResolveIPException
class ResolveIPException

Exception type to be thrown when fetching the IP address(es) for the interface fails.

Functions

getAddrsForInterface
istring[] getAddrsForInterface(cstring interface_name, bool ipv6)

Returns IP addresses for the network interface.

getAddrsForInterface
bool getAddrsForInterface(cstring interface_name, bool ipv6, bool delegate(cstring address, int getnameinfo_status) dg)

Iterates over IP addresses for the network interface.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).