package eval.luv; typedef InterfaceAddress = { var name:String; var isInternal:Bool; var physical:NativeString; var address:SockAddr; var netmask:SockAddr; } /** Network interfaces and hostname. @see https://aantron.github.io/luv/luv/Luv/Network **/ extern class Network { /** Lists network interface addresses. **/ static function interfaceAddresses():Result>; /** Retrieves a network interface name. **/ static function ifIndexToName(index:Int):Result; /** Retrieves a network interface identifier suitable for use in an IPv6 scoped address. **/ static function ifIndexToIid(index:Int):Result; /** Evaluates to the system's hostname. **/ static function getHostName():Result; }