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

freeifaddrs
void freeifaddrs(ifaddrs* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
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.

getifaddrs
int getifaddrs(ifaddrs** )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

ifaddrs
struct ifaddrs
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

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).