//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: private void initif(String hostName, byte addr[] , NetworkInterface nif) throws UnknownHostException private void Initif(String hostName, sbyte[] addr, NetworkInterface nif) { int family = -1; Holder6.Init(addr, nif); if (addr.Length == INADDRSZ) // normal IPv6 address { family = IPv6; } Holder_Renamed.Init(hostName, family); }
/* checking of value for scope_id should be done by caller * scope_id must be >= 0, or -1 to indicate not being set */ internal Inet6Address(String hostName, sbyte[] addr, int scope_id) { Holder_Renamed.Init(hostName, IPv6); Holder6 = new Inet6AddressHolder(this); Holder6.Init(addr, scope_id); }
internal Inet6Address() : base() { Holder_Renamed.Init(null, IPv6); Holder6 = new Inet6AddressHolder(this); }