Searched refs:Inet6Address (Results 1 - 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
H A DInet6Address.java115 * value, the full form is used. Inet6Address will return the full
128 * <p>In InetAddress and Inet6Address, it is used for internal
160 * When an Inet6Address is created in this way, the numeric scope-id is determined at the time
163 * Note also, that the numeric <i>scope_id</i> can be retrieved from Inet6Address instances returned from the
169 class Inet6Address extends InetAddress { class in inherits:InetAddress
174 new Inet6Address("::", new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, 0);
177 public static final InetAddress LOOPBACK = new Inet6Address("localhost",
213 Inet6Address() { method in class:Inet6Address
223 Inet6Address(String hostName, byte addr[], int scope_id) { method in class:Inet6Address
236 Inet6Address(Strin method in class:Inet6Address
242 Inet6Address (String hostName, byte addr[], NetworkInterface nif) throws UnknownHostException { method in class:Inet6Address
246 Inet6Address (String hostName, byte addr[], String ifname) throws UnknownHostException { method in class:Inet6Address
[all...]
H A DInet6AddressImpl.java159 if (inetaddr instanceof Inet6Address) {
160 netif_scope = ((Inet6Address) inetaddr).getScopeId();
171 if (addr instanceof Inet6Address)
172 scope = ((Inet6Address) addr).getScopeId();
191 // InetAddressImpl, but Inet6Address & Inet4Address are its subclasses.
194 Inet6Address anyAddress = new Inet6Address();
208 // InetAddressImpl, but Inet6Address & Inet4Address are its subclasses.
211 loopbackAddresses = new InetAddress[]{Inet6Address.LOOPBACK, Inet4Address.LOOPBACK};
H A DInetAddress.java110 * HREF="Inet6Address.html#format">Inet6Address#format</A>.
637 * will be returned; otherwise, an instance of Inet6Address
664 } else if (addr.length == Inet6Address.INADDRSZ) {
670 return new Inet6Address(host, addr, scopeId);
689 * supported. See <a href="Inet6Address.html#scoped">here</a> for a description of IPv6
725 * <a href="Inet6Address.html#scoped">here</a>.
928 return Inet6Address.LOOPBACK;
H A DSocksSocketImpl.java417 } else if (epoint.getAddress() instanceof Inet6Address) {
613 if (saddr.getAddress() instanceof Inet6Address &&
742 } else if (saddr.getAddress() instanceof Inet6Address) {
803 new InetSocketAddress(new Inet6Address("", addr), nport);
H A DInetSocketAddress.java199 addr == null ? Inet6Address.ANY : addr,
H A DNetworkInterface.java314 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) {
H A DDatagramSocket.java402 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) {
H A DSocket.java642 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address)) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DInet6AddressTest.java22 import java.net.Inet6Address;
655 Inet6Address addr = null;
661 addr = (Inet6Address) InetAddress.getByName(addrName);
672 addr = (Inet6Address) InetAddress.getByName(addrName);
678 addr = (Inet6Address) InetAddress.getByName(addrName);
729 Inet6Address.getByAddress("123", null, 0);
736 Inet6Address.getByAddress("123", addr1, 0);
747 Inet6Address.getByAddress("123", addr2, 3);
748 Inet6Address.getByAddress("123", addr2, 0);
749 Inet6Address
[all...]
H A DDatagramSocketTest.java26 import java.net.Inet6Address;
182 final DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK);
185 ds.connect(Inet6Address.LOOPBACK, server.getPort());
198 assertEquals(Inet6Address.LOOPBACK, receive.getAddress());
207 DatagramServer s1 = new DatagramServer(Inet6Address.LOOPBACK);
208 DatagramServer s2 = new DatagramServer(Inet6Address.LOOPBACK);
210 ds.connect(Inet6Address.LOOPBACK, s1.getPort());
211 ds.send(new DatagramPacket(new byte[10], 10, Inet6Address.LOOPBACK, s2.getPort()));
226 final DatagramServer server = new DatagramServer(Inet6Address.LOOPBACK);
227 final DatagramServer broken = new DatagramServer(Inet6Address
[all...]
H A DInterfaceAddressTest.java21 import java.net.Inet6Address;
103 } else if (addr instanceof Inet6Address) {
H A DMulticastSocketTest.java24 import java.net.Inet6Address;
87 if (nextAddress instanceof Inet6Address && ipv6NetworkInterface == null) {
646 if (theInterface instanceof Inet6Address) {
H A DSocketTest.java25 import java.net.Inet6Address;
/libcore/luni/src/test/java/libcore/java/net/
H A DInetAddressTest.java21 import java.net.Inet6Address;
76 private static Inet6Address loopback6() throws Exception {
77 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES);
80 private static Inet6Address localhost6() throws Exception {
81 return (Inet6Address) InetAddress.getByAddress("ip6-localhost", LOOPBACK6_BYTES);
232 // http://b/4328294 - the scope id isn't included when comparing Inet6Address instances.
234 assertEquals(Inet6Address.getByAddress("1", bs, 1), Inet6Address.getByAddress("2", bs, 2));
262 aAddr = Inet6Address.getByAddress(bAddr);
272 aAddr = Inet6Address
[all...]
H A DNetworkInterfaceTest.java22 import java.net.Inet6Address;
47 expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, null));
H A DOldURLStreamHandlerTest.java20 import java.net.Inet6Address;
H A DOldSocketTest.java26 import java.net.Inet6Address;
258 s.getLocalAddress() instanceof Inet6Address);
683 ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address);
690 ((InetSocketAddress) s.getLocalSocketAddress()).getAddress() instanceof Inet6Address);
H A DURLTest.java19 import java.net.Inet6Address;
60 if (inetAddress instanceof Inet6Address) {
/libcore/ojluni/src/main/native/
H A Dopenjdksub.mk44 Inet6Address.c \
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java33 import java.net.Inet6Address;
82 if (address instanceof Inet6Address) {
83 Inet6Address inet6Address = (Inet6Address) address;
92 address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex());
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DDatagramChannelTest.java23 import java.net.Inet6Address;
267 || (!ipv4 && inetAddress instanceof Inet6Address)) {
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DNet.java136 if (!(addr instanceof Inet4Address || addr instanceof Inet6Address))
309 if (ia instanceof Inet6Address) {
/libcore/luni/src/test/java/libcore/io/
H A DOsTest.java32 import java.net.Inet6Address;
362 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
367 assertEquals(Inet6Address.ANY, localSocketAddress.getAddress());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DDatagramChannelTest.java25 import java.net.Inet6Address;
78 channel1.socket().bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0));
79 channel2.socket().bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0));
84 this.datagramSocket1 = new DatagramSocket(0, Inet6Address.LOOPBACK);
85 this.datagramSocket2 = new DatagramSocket(0, Inet6Address.LOOPBACK);
1291 assertEquals(senderAddr.getAddress(), Inet6Address.LOOPBACK);
2530 dc.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0));
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
H A DFtpClient.java745 portCmd = "EPRT |" + ((myAddress instanceof Inet6Address) ? "2" : "1") + "|" +

Completed in 630 milliseconds

12