Ejemplo n.º 1
0
//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);
        }
Ejemplo n.º 2
0
 /* 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);
 }
Ejemplo n.º 3
0
 internal Inet6Address() : base()
 {
     Holder_Renamed.Init(null, IPv6);
     Holder6 = new Inet6AddressHolder(this);
 }