Home
last modified time | relevance | path

Searched refs:isa (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DInetSocketAddressTest.java60 InetSocketAddress isa = new InetSocketAddress(ia, 80); in test_ConstructorLInetAddressI() local
61 assertEquals(80,isa.getPort()); in test_ConstructorLInetAddressI()
65 InetSocketAddress isa = new InetSocketAddress((InetAddress)null, 80); in test_ConstructorLInetAddressI() local
66 assertEquals("::", isa.getHostName()); in test_ConstructorLInetAddressI()
82 InetSocketAddress isa = new InetSocketAddress(65535); in test_ConstructorI() local
83 assertEquals("::", isa.getHostName()); in test_ConstructorI()
84 assertEquals(65535, isa.getPort()); in test_ConstructorI()
122 InetSocketAddress isa = new InetSocketAddress(ia, 0); in test_getAddress() local
123 assertEquals(ia, isa.getAddress()); in test_getAddress()
125 InetSocketAddress isa = new InetSocketAddress((InetAddress) null, 0); in test_getAddress() local
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramChannelImpl.java370 InetSocketAddress isa = (InetSocketAddress)sender; in receive()
373 isa.getAddress().getHostAddress(), in receive()
374 isa.getPort()); in receive()
444 InetSocketAddress isa = Net.checkAddress(target); in send() local
445 InetAddress ia = isa.getAddress(); in send()
458 isa.getPort()); in send()
479 n = send(fd, src, isa); in send()
686 InetSocketAddress isa; in bind() local
690 isa = new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0); in bind()
692 isa = new InetSocketAddress(0); in bind()
[all …]
DServerSocketChannelImpl.java208 InetSocketAddress isa = (local == null) ? new InetSocketAddress(0) : in bind() local
212 sm.checkListen(isa.getPort()); in bind()
213 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
214 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
256 InetSocketAddress isa = isaa[0]; in accept() local
257 sc = new SocketChannelImpl(provider(), newfd, isa); in accept()
261 sm.checkAccept(isa.getAddress().getHostAddress(), in accept()
262 isa.getPort()); in accept()
DSocketChannelImpl.java603 InetSocketAddress isa = (local == null) ? in bind() local
605 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
606 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
643 InetSocketAddress isa = Net.checkAddress(sa); in connect() local
646 sm.checkConnect(isa.getAddress().getHostAddress(), in connect()
647 isa.getPort()); in connect()
660 isa.getAddress(), in connect()
661 isa.getPort()); in connect()
666 InetAddress ia = isa.getAddress(); in connect()
671 isa.getPort()); in connect()
[all …]
DDatagramSocketAdaptor.java72 InetSocketAddress isa = Net.asInetSocketAddress(remote); in connectInternal() local
73 int port = isa.getPort(); in connectInternal()
152 InetSocketAddress isa = (InetSocketAddress) in send() local
154 p.setPort(isa.getPort()); in send()
155 p.setAddress(isa.getAddress()); in send()
DInheritedChannel.java191 InetSocketAddress isa = new InetSocketAddress(ia, port); in createChannel() local
192 c = new InheritedSocketChannelImpl(provider, fd, isa); in createChannel()
DNet.java132 InetSocketAddress isa = (InetSocketAddress)sa; in checkAddress() local
133 if (isa.isUnresolved()) in checkAddress()
135 InetAddress addr = isa.getAddress(); in checkAddress()
138 return isa; in checkAddress()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetSocketAddressTest.java49 InetSocketAddress isa = InetSocketAddress.createUnresolved( in test_createUnresolvedLjava_lang_StringI() local
51 assertTrue(isa.isUnresolved()); in test_createUnresolvedLjava_lang_StringI()
52 assertNull(isa.getAddress()); in test_createUnresolvedLjava_lang_StringI()
53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); in test_createUnresolvedLjava_lang_StringI()
54 assertEquals(isa.getPort(), legalHostPortPairs[i].port); in test_createUnresolvedLjava_lang_StringI()
/libcore/ojluni/src/main/native/
DServerSocketChannelImpl.c84 jobject isa; in ServerSocketChannelImpl_accept0() local
119 isa = (*env)->NewObject(env, isa_class, isa_ctorID, in ServerSocketChannelImpl_accept0()
121 (*env)->SetObjectArrayElement(env, isaa, 0, isa); in ServerSocketChannelImpl_accept0()
DDatagramChannelImpl.c201 jobject isa = NULL; in Java_sun_nio_ch_DatagramChannelImpl_receive0() local
207 isa = (*env)->NewObject(env, isa_class, isa_ctorID, ia, port); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
210 if (isa == NULL) { in Java_sun_nio_ch_DatagramChannelImpl_receive0()
218 (*env)->SetObjectField(env, this, dci_senderID, isa); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java629 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalAddress() local
630 return isa.getAddress(); in getSocketLocalAddress()
639 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalPort() local
640 return isa.getPort(); in getSocketLocalPort()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java148 UnixSocketAddress isa = (UnixSocketAddress) Libcore.os.getsockname(fd); in checkSockName() local
149 assertEquals(address, isa); in checkSockName()
151 assertEquals(0, isa.getSunPath()[0]); in checkSockName()