クラス
java.net.Inet6Addressの使用
-
java.netでのInet6Addressの使用
修飾子と型メソッド説明static Inet6Address
Inet6Address.getByAddress(String host, byte[] addr, int scope_id)
InetAddress.getByAddress(String,byte[])
とまったく同様にしてInet6Addressを作成します。ただし、IPv6スコープIDが指定された数値に設定される点は異なります。static Inet6Address
Inet6Address.getByAddress(String host, byte[] addr, NetworkInterface nif)
InetAddress.getByAddress(String,byte[])
とまったく同様にしてInet6Addressを作成します。ただし、指定されたインタフェースのaddr
に指定されたアドレス・タイプに対応する値に、IPv6スコープIDが設定される点は異なります。