Home
last modified time | relevance | path

Searched refs:getAddress (Results 1 – 25 of 59) sorted by relevance

123

/libcore/ojluni/src/main/java/java/net/
DInet4Address.java172 inet.holder().address = holder().getAddress(); in writeReplace()
194 return ((holder().getAddress() & 0xf0000000) == 0xe0000000); in isMulticastAddress()
204 return holder().getAddress() == 0; in isAnyLocalAddress()
216 byte[] byteAddr = getAddress(); in isLoopbackAddress()
232 int address = holder().getAddress(); in isLinkLocalAddress()
249 int address = holder().getAddress(); in isSiteLocalAddress()
267 byte[] byteAddr = getAddress(); in isMCGlobal()
296 int address = holder().getAddress(); in isMCLinkLocal()
312 int address = holder().getAddress(); in isMCSiteLocal()
328 int address = holder().getAddress(); in isMCOrgLocal()
[all …]
DMulticastSocket.java398 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "joinGroup"); in joinGroup()
401 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in joinGroup()
404 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in joinGroup()
445 checkAddress(((InetSocketAddress)mcastaddr).getAddress(), "leaveGroup"); in leaveGroup()
448 security.checkMulticast(((InetSocketAddress)mcastaddr).getAddress()); in leaveGroup()
451 if (!((InetSocketAddress)mcastaddr).getAddress().isMulticastAddress()) { in leaveGroup()
666 checkAddress(p.getAddress(), "send"); in send()
675 if (p.getAddress().isMulticastAddress()) { in send()
676 security.checkMulticast(p.getAddress(), ttl); in send()
678 security.checkConnect(p.getAddress().getHostAddress(), in send()
[all …]
DSocksSocketImpl.java264 if (!(endpoint.getAddress() instanceof Inet4Address)) { in connectV4()
271 out.write(endpoint.getAddress().getAddress()); in connectV4()
346 security.checkConnect(epoint.getAddress().getHostAddress(), in connect()
497 } else if (epoint.getAddress() instanceof Inet6Address) { in connect()
499 out.write(epoint.getAddress().getAddress()); in connect()
504 out.write(epoint.getAddress().getAddress()); in connect()
1051 return external_address.getAddress(); in getInetAddress()
DDatagramPacket.java206 public synchronized InetAddress getAddress() { in getAddress() method in DatagramPacket
343 setAddress(addr.getAddress()); in setSocketAddress()
356 return new InetSocketAddress(getAddress(), getPort()); in getSocketAddress()
DDatagramSocket.java404 InetAddress iaddr = epoint.getAddress(); in bind()
517 connectInternal(epoint.getAddress(), epoint.getPort()); in connect()
687 checkAddress (p.getAddress(), "send"); in send()
697 if (p.getAddress().isMulticastAddress()) { in send()
698 security.checkMulticast(p.getAddress()); in send()
700 security.checkConnect(p.getAddress().getHostAddress(), in send()
706 packetAddress = p.getAddress(); in send()
779 peekAd = peekPacket.getAddress().getHostAddress(); in receive()
823 peekAddress = peekPacket.getAddress(); in receive()
DInterfaceAddress.java64 for (byte b : netmask.getAddress()) { in countPrefixLength()
76 public InetAddress getAddress() { in getAddress() method in InterfaceAddress
DInetAddress.java250 int getAddress() { in getAddress() method in InetAddress.InetAddressHolder
336 return new Inet4Address(holder().getHostName(), holder().getAddress()); in readResolve()
656 host = nameService.getHostByAddr(addr.getAddress()); in getHostFromNameService()
690 public byte[] getAddress() { in getAddress() method in InetAddress
DPlainDatagramSocketImpl.java120 if (p.getData() == null || p.getAddress() == null) { in send()
125 InetAddress address = connected ? null : p.getAddress(); in send()
132 i.holder().address = p.getAddress().holder().address; in peek()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DServerSocketChannelTest.java100 assertTrue(boundAddress.getAddress().isAnyLocalAddress()); in bind_nullBindsToAll()
101 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in bind_nullBindsToAll()
102 assertFalse(boundAddress.getAddress().isLoopbackAddress()); in bind_nullBindsToAll()
172 assertFalse(boundAddress.getAddress().isAnyLocalAddress()); in bind_loopback()
173 assertFalse(boundAddress.getAddress().isLinkLocalAddress()); in bind_loopback()
174 assertTrue(boundAddress.getAddress().isLoopbackAddress()); in bind_loopback()
216 ((InetSocketAddress)(ssc.getLocalAddress())).getAddress()); in bind_socketAddress()
DDatagramChannelTest.java135 assertTrue(actualAddress.getAddress().isAnyLocalAddress()); in test_bind_any()
164 assertEquals(bindAddress, actualAddress.getAddress()); in test_bind()
200 assertEquals(socketAddress.getAddress(), in test_bind()
201 ((InetSocketAddress)(channel.getLocalAddress())).getAddress()); in test_bind()
234 assertEquals(socketAddress.getAddress(), in test_getRemoteAddress()
235 ((InetSocketAddress) (clientChannel.getRemoteAddress())).getAddress()); in test_getRemoteAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetSocketAddressTest.java52 assertNull(isa.getAddress()); in test_createUnresolvedLjava_lang_StringI()
104 assertEquals("Address", init.getAddress(), desr.getAddress());
DInterfaceAddressTest.java84 InetAddress addr1 = interfaceAddr.getAddress(); in test_getAddress()
86 InetAddress addr2 = anotherInterfaceAddr.getAddress(); in test_getAddress()
98 InetAddress addr = interfaceAddr.getAddress(); in test_getBroadcast()
DInetAddressTest.java63 byte[] addr = ia.getAddress(); in test_getAddress()
72 byte[] newBytes = address.getAddress(); in test_getAddress()
353 byte[] iaAddresss = initAddr.getAddress();
354 byte[] deIAAddresss = desrAddr.getAddress();
/libcore/ojluni/src/main/java/sun/security/x509/
DIPAddressName.java161 address = InetAddress.getByName(name).getAddress(); in parseIPv4()
167 (name.substring(slashNdx+1)).getAddress(); in parseIPv4()
171 (name.substring(0, slashNdx)).getAddress(); in parseIPv4()
191 address = InetAddress.getByName(name).getAddress(); in parseIPv6()
195 (name.substring(0, slashNdx)).getAddress(); in parseIPv6()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramSocketAdaptor.java129 ? Net.asInetSocketAddress(dc.remoteAddress()).getAddress() in getInetAddress()
149 if (p.getAddress() == null) { in send()
155 p.setAddress(isa.getAddress()); in send()
232 InetAddress result = ((InetSocketAddress)local).getAddress(); in getLocalAddress()
238 return new InetSocketAddress(0).getAddress(); in getLocalAddress()
DNet.java108 InetAddress addr = isa.getAddress(); in checkAddress()
184 sm.checkConnect(addr.getAddress().getHostAddress(), -1); in getRevealedLocalAddress()
227 byte[] addr = ia.getAddress();
259 return ia.getAddress();
264 byte[] ip4address = ia.getAddress();
DDatagramChannelImpl.java398 isa.getAddress().getHostAddress(), in receive()
471 InetAddress ia = isa.getAddress(); in send()
566 rem, target.getAddress(), target.getPort()); in sendFromNativeBuffer()
726 InetAddress addr = isa.getAddress(); in bind()
735 Net.bind(family, fd, isa.getAddress(), isa.getPort()); in bind()
769 sm.checkConnect(isa.getAddress().getHostAddress(), in connect()
773 isa.getAddress(), in connect()
782 cachedSenderInetAddress = isa.getAddress(); in connect()
822 sm.checkConnect(isa.getAddress().getHostAddress(), in disconnect()
DAsynchronousServerSocketChannelImpl.java161 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
162 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
DSocketAdaptor.java159 return ((InetSocketAddress)remote).getAddress(); in getInetAddress()
167 return Net.getRevealedLocalAddress(local).getAddress(); in getLocalAddress()
170 return new InetSocketAddress(0).getAddress(); in getLocalAddress()
/libcore/ojluni/annotations/hiddenapi/java/net/
DInetSocketAddress.java83 public final java.net.InetAddress getAddress() { in getAddress() method in InetSocketAddress
150 private java.net.InetAddress getAddress() { in getAddress() method in InetSocketAddress.InetSocketAddressHolder
DInterfaceAddress.java49 public java.net.InetAddress getAddress() { in getAddress() method in InterfaceAddress
DInet4Address.java91 public byte[] getAddress() { in getAddress() method in Inet4Address
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java151 assertEquals(inLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
152 assertEquals(inRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
153 assertEquals(outLocalAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
154 assertEquals(outRemoteAddress.getAddress(), ss.getInetAddress()); in checkSocketLocalAndRemoteAddresses()
185 assertTrue(inLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses()
190 assertTrue(outLocalAddressAfterClose.getAddress().isAnyLocalAddress()); in checkSocketLocalAndRemoteAddresses()
384 assertTrue(localAddressAfterClose.getAddress().isAnyLocalAddress()); in testStateAfterClose()
DInetSocketAddressTest.java123 assertEquals(ia, isa.getAddress()); in test_getAddress()
126 assertNotNull(isa.getAddress()); in test_getAddress()
/libcore/ojluni/annotations/mmodule/java/net/
DInetSocketAddress.annotated.java47 public final java.net.InetAddress getAddress() { throw new RuntimeException("Stub!"); } in getAddress() method in InetSocketAddress

123