Home
last modified time | relevance | path

Searched refs:connect (Results 1 – 25 of 86) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java349 assertTrue(this.channel1.connect(localAddr1)); in testSocket_Block_BasicStatusAfterConnect()
363 boolean connected = channel1.connect(localAddr1); in testSocket_NonBlock_BasicStatusAfterConnect()
398 assertTrue(this.channel1.connect(localAddr1)); in testSocket_Block_ActionsAfterConnect()
409 boolean connected = channel1.connect(localAddr1); in testSocket_NonBlock_ActionsAfterConnectBeforeFinish()
426 channel1.connect(localAddr1); in testSocket_NonBlock_ActionsAfterConnectAfterFinish()
440 channel1.connect(localAddr1); in testSocket_getInetAddress()
450 channel1.connect(localAddr1); in testSocket_getRemoteSocketAddress()
460 channel1.connect(localAddr1); in testSocket_getPort()
468 channel1.connect(localAddr1); in testSocket_getLocalAddress()
477 channel1.connect(localAddr1); in testSocket_getLocalSocketAddress()
[all …]
DDatagramChannelTest.java297 dc.connect(datagramSocket1Address); in testSocket_Block_BasicStatusAfterConnect()
309 dc.connect(datagramSocket1Address); in testSocket_NonBlock_BasicStatusAfterConnect()
347 s.connect(datagramSocket2Address); in testSocket_ActionsBeforeConnect()
365 this.channel1.connect(datagramSocket1Address); in testSocket_Block_ActionsAfterConnect()
371 this.channel1.connect(datagramSocket1Address); in testSocket_NonBlock_ActionsAfterConnect()
380 s.connect(datagramSocket2Address); in assertSocketActionAfterConnect()
454 this.channel1.connect(null); in testConnect_Null()
475 this.channel1.connect(newTypeAddress); in testConnect_UnsupportedType()
490 this.channel1.connect(unresolved); in testConnect_Unresolved()
501 .connect(new InetSocketAddress("", 1081))); //$NON-NLS-1$ in testConnect_EmptyHost()
[all …]
/libcore/luni/src/main/java/libcore/net/url/
DJarURLConnectionImpl.java80 public void connect() throws IOException { in connect() method in JarURLConnectionImpl
97 connect(); in getJarFile()
183 connect(); in getJarEntry()
215 connect(); in getInputStream()
248 connect(); in getContentType()
269 connect(); in getContentLength()
298 connect(); in getContent()
DFileURLConnection.java112 public void connect() throws IOException { in connect() method in FileURLConnection
150 connect(); in getHeaderField()
169 connect(); in getHeaderFieldKey()
186 connect(); in getHeaderField()
232 connect(); in getContentLengthLong()
308 connect(); in getInputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPipedInputStreamTest.java83 pis.connect(pos); in test_readException()
107 pis.connect(pos); in test_available()
135 pis.connect(pos); in test_close()
158 pis.connect(pos); in test_connectLjava_io_PipedOutputStream()
176 pis.connect(pos); in test_read()
196 pis.connect(pos); in test_read$BII()
257 pis.connect(pos); in test_write_failsAfterReaderDead()
322 pos.connect(pis); in test_receive_failsIfWriterClosed()
351 in.connect(out); in test_read_after_write_close()
DPipedOutputStreamTest.java111 out.connect(new PipedInputStream()); in test_connectLjava_io_PipedInputStream_Exception()
113 out.connect(null); in test_connectLjava_io_PipedInputStream_Exception()
128 out.connect(new PipedInputStream()); in test_connectLjava_io_PipedInputStream()
/libcore/luni/src/main/java/java/net/
DSocketImpl.java107 protected abstract void connect(String host, int port) throws IOException; in connect() method in SocketImpl
120 protected abstract void connect(InetAddress address, int port) in connect() method in SocketImpl
262 protected abstract void connect(SocketAddress remoteAddr, int timeout) throws IOException; in connect() method in SocketImpl
DPlainSocketImpl.java157 protected void connect(String aHost, int aPort) throws IOException { in connect() method in PlainSocketImpl
158 connect(InetAddress.getByName(aHost), aPort); in connect()
162 protected void connect(InetAddress anAddr, int aPort) throws IOException { in connect() method in PlainSocketImpl
163 connect(anAddr, aPort, 0); in connect()
178 private void connect(InetAddress anAddr, int aPort, int timeout) throws IOException { in connect() method in PlainSocketImpl
183 IoBridge.connect(fd, normalAddr, aPort, timeout); in connect()
321 IoBridge.connect(fd, socksGetServerAddress(), socksGetServerPort(), timeout); in socksConnect()
386 IoBridge.connect(fd, socksGetServerAddress(), socksGetServerPort()); in socksBind()
454 protected void connect(SocketAddress remoteAddr, int timeout) throws IOException { in connect() method in PlainSocketImpl
456 connect(inetAddr.getAddress(), inetAddr.getPort(), timeout); in connect()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java131 ds.connect(inetAddress, 0); in test_connectLjava_net_InetAddressI()
138 ds.connect(inetAddress, 0); in test_connectLjava_net_InetAddressI()
148 ds.connect(localHost, ds.getLocalPort()); in testConnect_connectToSelf()
185 ds.connect(Inet6Address.LOOPBACK, server.getPort()); in testConnect_echoServer()
210 ds.connect(Inet6Address.LOOPBACK, s1.getPort()); in testConnect_throwsOnAddressMismatch()
232 ds.connect(Inet6Address.LOOPBACK, broken.getPort()); in testConnect_connectDisconnectConnectThenSendRecv()
234 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectDisconnectConnectThenSendRecv()
259 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectDisconnectThenSendRecv()
286 ds.connect(Inet6Address.LOOPBACK, broken.getPort()); in testConnect_connectTwice()
287 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectTwice()
[all …]
DSocketImplTest.java98 protected void connect(String host, int port) throws IOException { in connect() method in SocketImplTest.MockSocketImpl
101 protected void connect(InetAddress address, int port) in connect() method in SocketImplTest.MockSocketImpl
126 protected void connect(SocketAddress remoteAddr, int timeout) in connect() method in SocketImplTest.MockSocketImpl
DSocketTest.java50 socket.connect(addr); in run()
193 theSocket.connect(boundAddress); in test_bindLjava_net_SocketAddress()
277 socket.connect(new InetSocketAddress("1.2.3.4hello", 12345)); in test_connect_unknownhost()
287 socket.connect(unresolved); in test_connect_unresolved()
292 socket.connect(unresolved, 123); in test_connect_unresolved()
308 theSocket.connect(null); in test_connectLjava_net_SocketAddress()
315 theSocket.connect(new UnsupportedSocketAddress()); in test_connectLjava_net_SocketAddress()
322 theSocket.connect(new InetSocketAddress(InetAddress in test_connectLjava_net_SocketAddress()
333 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddress()
345 client.connect(boundAddress); in test_connectLjava_net_SocketAddress()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java92 u.connect(); in test_addRequestProperty()
125 u.connect(); in test_setRequestProperty()
145 u.connect(); in test_setUseCachesZ()
163 u.connect(); in test_setAllowUserInteractionZ()
179 public void connect() { in connect() method in URLConnectionTest.MockURLConnection
188 public void connect() throws IOException { in openConnection()
321 uc.connect();
337 uc.connect();
339 uc.connect();
396 fileURLCon.connect();
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java717 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_getRemoteSocketAddress()
744 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_isBound()
777 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_isConnected()
846 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
956 theSocket.connect(null); in test_connectLjava_net_SocketAddress()
965 theSocket.connect(invalidType); in test_connectLjava_net_SocketAddress()
976 theSocket.connect(nonConnectableAddress); in test_connectLjava_net_SocketAddress()
988 theSocket.connect(theAddress); in test_connectLjava_net_SocketAddress()
1000 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_connectLjava_net_SocketAddress()
1026 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_connectLjava_net_SocketAddress()
[all …]
DConcurrentCloseTest.java58 s.connect(ss.getLocalSocketAddress()); in test_connect()
73 s.connect(ss.getLocalSocketAddress(), 3600 * 1000); in test_connect_timeout()
89 s.connect(ss.getLocalSocketAddress()); in test_connect_nonBlocking()
109 s.connect(ss.getLocalSocketAddress()); in test_read()
124 s.connect(ss.getLocalSocketAddress()); in test_read_multiple()
192 s.connect(ss.getLocalSocketAddress()); in test_write()
DOldSocketImplFactoryTest.java137 protected void connect(String arg0, int arg1) throws IOException { in connect() method in OldSocketImplFactoryTest.MockSocketImpl
141 protected void connect(InetAddress arg0, int arg1) throws IOException { in connect() method in OldSocketImplFactoryTest.MockSocketImpl
145 protected void connect(SocketAddress arg0, int arg1) throws IOException { in connect() method in OldSocketImplFactoryTest.MockSocketImpl
DOldUnixSocketTest.java39 pingClient.connect(new InetSocketAddress( in test_getInputStream()
89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddressI()
/libcore/luni/src/main/java/java/io/
DPipedInputStream.java96 connect(out); in PipedInputStream()
128 connect(out); in PipedInputStream()
171 public void connect(PipedOutputStream src) throws IOException { in connect() method in PipedInputStream
172 src.connect(this); in connect()
DPipedOutputStream.java53 connect(target); in PipedOutputStream()
82 public void connect(PipedInputStream stream) throws IOException { in connect() method in PipedOutputStream
DPipedWriter.java53 connect(destination); in PipedWriter()
84 public void connect(PipedReader reader) throws IOException { in connect() method in PipedWriter
DPipedReader.java96 connect(out); in PipedReader()
128 connect(out); in PipedReader()
155 public void connect(PipedWriter src) throws IOException { in connect() method in PipedReader
156 src.connect(this); in connect()
/libcore/luni/src/main/java/java/nio/channels/
DSocketChannel.java118 socketChannel.connect(address); in open()
198 public abstract boolean connect(SocketAddress address) throws IOException; in connect() method in SocketChannel
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java55 SSLEngine[] engines = connect(c, hooks, finished); in create()
59 public static SSLEngine[] connect(TestSSLContext c, Hooks hooks) throws IOException { in connect() method in TestSSLEnginePair
60 return connect(c, hooks, null); in connect()
70 public static SSLEngine[] connect(final TestSSLContext c, in connect() method in TestSSLEnginePair
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java138 assertFalse(this.channel1.connect(localAddr1)); in testIsConnected()
161 assertFalse(this.channel1.connect(localAddr1)); in testIsConnectionPending()
247 channel1.connect(localAddr1); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
301 sc.connect(ssc.socket().getLocalSocketAddress()); in test_socketChannel_read_DirectByteBuffer()
317 sc.connect(ssc.socket().getLocalSocketAddress()); in test_socketChannel_read_DirectByteBuffer()
370 public boolean connect(SocketAddress address) throws IOException { in connect() method in OldSocketChannelTest.MockSocketChannel
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSessionContextTest.java216 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite1 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
218 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite2 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
220 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite3 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
228 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite1 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
233 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite2 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
235 toClose.add(TestSSLSocketPair.connect(c, new String[] { cipherSuite3 }, null)); in test_SSLSessionContext_setSessionCacheSize_dynamic()
/libcore/luni/src/test/java/libcore/java/io/
DOldPipedOutputStreamTest.java130 out.connect(new PipedInputStream()); in test_connectLjava_io_PipedInputStream()
143 out.connect(new PipedInputStream()); in test_connectLjava_io_PipedInputStream()
150 out.connect(null); in test_connectLjava_io_PipedInputStream()

1234