Home
last modified time | relevance | path

Searched refs:isa (Results 1 – 13 of 13) 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/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/java/sun/nio/ch/
DServerSocketChannelImpl.java217 InetSocketAddress isa = (local == null) ? new InetSocketAddress(0) : in bind() local
221 sm.checkListen(isa.getPort()); in bind()
222 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
223 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
265 InetSocketAddress isa = isaa[0]; in accept() local
266 sc = new SocketChannelImpl(provider(), newfd, isa); in accept()
270 sm.checkAccept(isa.getAddress().getHostAddress(), in accept()
271 isa.getPort()); in accept()
DDatagramChannelImpl.java395 InetSocketAddress isa = (InetSocketAddress)sender; in receive()
398 isa.getAddress().getHostAddress(), in receive()
399 isa.getPort()); in receive()
470 InetSocketAddress isa = Net.checkAddress(target); in send() local
471 InetAddress ia = isa.getAddress(); in send()
484 isa.getPort()); in send()
506 n = send(fd, src, isa); in send()
713 InetSocketAddress isa; in bind() local
717 isa = new InetSocketAddress(InetAddress.getByName("0.0.0.0"), 0); in bind()
719 isa = new InetSocketAddress(0); in bind()
[all …]
DAsynchronousServerSocketChannelImpl.java150 InetSocketAddress isa = (local == null) ? new InetSocketAddress(0) : in bind() local
154 sm.checkListen(isa.getPort()); in bind()
161 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
162 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
DSocketChannelImpl.java619 InetSocketAddress isa = (local == null) ? in bind() local
623 sm.checkListen(isa.getPort()); in bind()
625 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
626 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
663 InetSocketAddress isa = Net.checkAddress(sa); in connect() local
666 sm.checkConnect(isa.getAddress().getHostAddress(), in connect()
667 isa.getPort()); in connect()
680 isa.getAddress(), in connect()
681 isa.getPort()); in connect()
686 InetAddress ia = isa.getAddress(); 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()
DAsynchronousSocketChannelImpl.java430 InetSocketAddress isa = (local == null) ? in bind() local
434 sm.checkListen(isa.getPort()); in bind()
436 NetHooks.beforeTcpBind(fd, isa.getAddress(), isa.getPort()); in bind()
437 Net.bind(fd, isa.getAddress(), isa.getPort()); in bind()
DUnixAsynchronousSocketChannelImpl.java325 InetSocketAddress isa = Net.checkAddress(remote); in implConnect() local
330 sm.checkConnect(isa.getAddress().getHostAddress(), isa.getPort()); in implConnect()
349 NetHooks.beforeTcpConnect(fd, isa.getAddress(), isa.getPort()); in implConnect()
350 int n = Net.connect(fd, isa.getAddress(), isa.getPort()); in implConnect()
DNet.java105 InetSocketAddress isa = (InetSocketAddress)sa; in checkAddress() local
106 if (isa.isUnresolved()) in checkAddress()
108 InetAddress addr = isa.getAddress(); in checkAddress()
111 return isa; in checkAddress()
/libcore/ojluni/src/main/native/
DServerSocketChannelImpl.c92 jobject isa; in Java_sun_nio_ch_ServerSocketChannelImpl_accept0() local
132 isa = (*env)->NewObject(env, isa_class, isa_ctorID, remote_ia, remote_port); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
133 CHECK_NULL_RETURN(isa, IOS_THROWN); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
134 (*env)->SetObjectArrayElement(env, isaa, 0, isa); in Java_sun_nio_ch_ServerSocketChannelImpl_accept0()
DDatagramChannelImpl.c221 jobject isa = NULL; in Java_sun_nio_ch_DatagramChannelImpl_receive0() local
229 isa = (*env)->NewObject(env, isa_class, isa_ctorID, ia, port); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
231 CHECK_NULL_RETURN(isa, IOS_THROWN); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
236 (*env)->SetObjectField(env, this, dci_senderID, isa); in Java_sun_nio_ch_DatagramChannelImpl_receive0()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java205 UnixSocketAddress isa = (UnixSocketAddress) Os.getsockname(fd); in checkSockName() local
206 assertEquals(address, isa); in checkSockName()
208 assertEquals(0, isa.getSunPath()[0]); in checkSockName()