Home
last modified time | relevance | path

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

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java352 assertTrue(this.channel1.connect(localAddr1)); in testSocket_Block_BasicStatusAfterConnect()
366 boolean connected = channel1.connect(localAddr1); in testSocket_NonBlock_BasicStatusAfterConnect()
401 assertTrue(this.channel1.connect(localAddr1)); in testSocket_Block_ActionsAfterConnect()
412 boolean connected = channel1.connect(localAddr1); in testSocket_NonBlock_ActionsAfterConnectBeforeFinish()
429 channel1.connect(localAddr1); in testSocket_NonBlock_ActionsAfterConnectAfterFinish()
443 channel1.connect(localAddr1); in testSocket_getInetAddress()
453 channel1.connect(localAddr1); in testSocket_getRemoteSocketAddress()
463 channel1.connect(localAddr1); in testSocket_getPort()
471 channel1.connect(localAddr1); in testSocket_getLocalAddress()
480 channel1.connect(localAddr1); in testSocket_getLocalSocketAddress()
[all …]
DDatagramChannelTest.java301 dc.connect(datagramSocket1Address); in testSocket_Block_BasicStatusAfterConnect()
313 dc.connect(datagramSocket1Address); in testSocket_NonBlock_BasicStatusAfterConnect()
351 s.connect(datagramSocket2Address); in testSocket_ActionsBeforeConnect()
369 this.channel1.connect(datagramSocket1Address); in testSocket_Block_ActionsAfterConnect()
375 this.channel1.connect(datagramSocket1Address); in testSocket_NonBlock_ActionsAfterConnect()
384 s.connect(datagramSocket2Address); in assertSocketActionAfterConnect()
458 this.channel1.connect(null); in testConnect_Null()
479 this.channel1.connect(newTypeAddress); in testConnect_UnsupportedType()
494 this.channel1.connect(unresolved); in testConnect_Unresolved()
505 .connect(new InetSocketAddress("", 1081))); in testConnect_EmptyHost()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DDatagramSocketTest.java77 s.connect(InetAddress.getLocalHost(), port); in testPendingException()
120 s.connect(InetAddress.getLocalHost(), port); in test_b31218085()
137 s1.connect(validAddress); in testForceConnectToThrowSocketException()
144 s2.connect(validAddress); in testForceConnectToThrowSocketException()
159 otherSocket.connect(dgramSocket.getLocalSocketAddress()); in testExplicitFilter()
163 dgramSocket.connect(new InetSocketAddress(0)); in testExplicitFilter()
177 srcSocket.connect(dgramSocket.getLocalSocketAddress()); in testExplicitFilter()
181 dgramSocket.connect(srcSocket.getLocalSocketAddress()); in testExplicitFilter()
206 srcDs.connect(ds.getLocalSocketAddress()); in testAddressSameIfUnchanged()
DOldSocketTest.java722 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_getRemoteSocketAddress()
749 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_isBound()
782 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_isConnected()
847 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_bindLjava_net_SocketAddress()
925 theSocket.connect(null); in test_connectLjava_net_SocketAddress()
934 theSocket.connect(invalidType); in test_connectLjava_net_SocketAddress()
945 theSocket.connect(nonConnectableAddress); in test_connectLjava_net_SocketAddress()
957 theSocket.connect(theAddress); in test_connectLjava_net_SocketAddress()
969 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_connectLjava_net_SocketAddress()
995 theSocket.connect(serverSocket.getLocalSocketAddress()); in test_connectLjava_net_SocketAddress()
[all …]
DConcurrentCloseTest.java62 s.connect(UNREACHABLE_ADDRESS); in test_connect()
74 s.connect(UNREACHABLE_ADDRESS, 3600 * 1000); in test_connect_timeout()
87 s.connect(UNREACHABLE_ADDRESS); in test_connect_nonBlocking()
105 s.connect(ss.getLocalSocketAddress()); in test_read()
120 s.connect(ss.getLocalSocketAddress()); in test_read_multiple()
188 s.connect(ss.getLocalSocketAddress()); in test_write()
DSocketTimeoutTest.java78 checkOperationTimesOut(() -> new Socket(), s -> s.connect(UNREACHABLE_ADDRESS, in testSocketConnectTimeout()
85 s.connect(UNREACHABLE_ADDRESS, TIMEOUT_MILLIS); in testSocketConnectTimeout()
97 s.connect(ss.getLocalSocketAddress()); in testSocketReadTimeout()
118 sock.connect(serverSocket.getLocalSocketAddress()); in testSocketWriteNeverTimeouts()
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
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarURLConnection.java89 connect(); in getJarFile()
94 connect(); in getJarEntry()
119 public void connect() throws IOException { in connect() method in JarURLConnection
156 connect(); in getInputStream()
183 connect(); in getContentLengthLong()
199 connect(); in getContent()
214 connect(); in getContentType()
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java152 ds.connect(inetAddress, 0); in test_connectLjava_net_InetAddressI()
161 ds.connect(inetAddress, 0); in test_connectLjava_net_InetAddressI()
172 ds.connect(localHost, ds.getLocalPort()); in testConnect_connectToSelf()
208 ds.connect(Inet6Address.LOOPBACK, server.getPort()); in testConnect_echoServer()
230 ds.connect(Inet6Address.LOOPBACK, s1.getPort()); in testConnect_throwsOnAddressMismatch()
249 ds.connect(Inet6Address.LOOPBACK, broken.getPort()); in testConnect_connectDisconnectConnectThenSendRecv()
251 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectDisconnectConnectThenSendRecv()
272 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectDisconnectThenSendRecv()
296 ds.connect(Inet6Address.LOOPBACK, broken.getPort()); in testConnect_connectTwice()
297 ds.connect(Inet6Address.LOOPBACK, serverPortNumber); in testConnect_connectTwice()
[all …]
DSocketTest.java52 socket.connect(addr); in run()
195 theSocket.connect(boundAddress); in test_bindLjava_net_SocketAddress()
279 socket.connect(new InetSocketAddress("1.2.3.4hello", 12345)); in test_connect_unknownhost()
289 socket.connect(unresolved); in test_connect_unresolved()
294 socket.connect(unresolved, 123); in test_connect_unresolved()
310 theSocket.connect(null); in test_connectLjava_net_SocketAddress()
317 theSocket.connect(new UnsupportedSocketAddress()); in test_connectLjava_net_SocketAddress()
324 theSocket.connect(new InetSocketAddress(InetAddress in test_connectLjava_net_SocketAddress()
335 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(), in test_connectLjava_net_SocketAddress()
347 client.connect(boundAddress); in test_connectLjava_net_SocketAddress()
[all …]
DSocketImplTest.java104 protected void connect(String host, int port) throws IOException { in connect() method in SocketImplTest.MockSocketImpl
107 protected void connect(InetAddress address, int port) in connect() method in SocketImplTest.MockSocketImpl
132 protected void connect(SocketAddress remoteAddr, int timeout) in connect() method in SocketImplTest.MockSocketImpl
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DURLConnectionTest.java88 u.connect(); in test_addRequestProperty()
121 u.connect(); in test_setRequestProperty()
141 u.connect(); in test_setUseCachesZ()
159 u.connect(); in test_setAllowUserInteractionZ()
175 public void connect() { in connect() method in URLConnectionTest.MockURLConnection
184 public void connect() throws IOException { in openConnection()
316 uc.connect();
332 uc.connect();
334 uc.connect();
392 fileURLCon.connect();
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDescriptorHolderSocketImpl.java62 protected void connect(String host, int port) throws IOException { in connect() method in FileDescriptorHolderSocketImpl
67 protected void connect(InetAddress address, int port) throws IOException { in connect() method in FileDescriptorHolderSocketImpl
72 protected void connect(SocketAddress address, int timeout) throws IOException { in connect() method in FileDescriptorHolderSocketImpl
/libcore/luni/src/main/java/libcore/io/
DClassPathURLStreamHandler.java126 public void connect() throws IOException { in connect() method in ClassPathURLStreamHandler.ClassPathURLConnection
141 connect(); in getJarFile()
158 connect(); in getInputStream()
195 connect(); in getContentLength()
/libcore/ojluni/src/main/java/java/util/logging/
DSocketHandler.java127 connect(); in SocketHandler()
156 connect(); in SocketHandler()
159 private void connect() throws IOException { in connect() method in SocketHandler
/libcore/ojluni/annotations/mmodule/java/net/
DSocketImpl.annotated.java39 protected abstract void connect(java.lang.String host, int port) throws java.io.IOException; in connect() method in SocketImpl
41 protected abstract void connect(java.net.InetAddress address, int port) throws java.io.IOException; in connect() method in SocketImpl
43 protected abstract void connect(java.net.SocketAddress address, int timeout) throws java.io.IOExcep… in connect() method in SocketImpl
/libcore/ojluni/src/main/java/java/io/
DPipedWriter.java59 connect(snk); in PipedWriter()
91 public synchronized void connect(PipedReader snk) throws IOException { in connect() method in PipedWriter
DPipedOutputStream.java64 connect(snk); in PipedOutputStream()
96 public synchronized void connect(PipedInputStream snk) throws IOException { in connect() method in PipedOutputStream
DPipedReader.java101 connect(src); in PipedReader()
162 public void connect(PipedWriter src) throws IOException { in connect() method in PipedReader
163 src.connect(this); in connect()
/libcore/ojluni/annotations/hiddenapi/java/net/
DSocketImpl.java40 protected abstract void connect(java.lang.String host, int port) throws java.io.IOException; in connect() method in SocketImpl
42 protected abstract void connect(java.net.InetAddress address, int port) in connect() method in SocketImpl
45 protected abstract void connect(java.net.SocketAddress address, int timeout) in connect() method in SocketImpl
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLEnginePair.java60 SSLEngine[] engines = connect(c, hooks, finished); in create()
64 public static SSLEngine[] connect(TestSSLContext c, Hooks hooks) throws IOException { in connect() method in TestSSLEnginePair
65 return connect(c, hooks, null); in connect()
75 public static SSLEngine[] connect(final TestSSLContext c, in connect() method in TestSSLEnginePair
/libcore/ojluni/src/main/java/java/net/
DSocketImpl.java90 protected abstract void connect(String host, int port) throws IOException; in connect() method in SocketImpl
100 protected abstract void connect(InetAddress address, int port) throws IOException; in connect() method in SocketImpl
113 protected abstract void connect(SocketAddress address, int timeout) throws IOException; in connect() method in SocketImpl
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java175 s.connect(new InetSocketAddress(server, port), connectTimeout); in doConnect()
178 s.connect(new InetSocketAddress(server, port), defaultConnectTimeout); in doConnect()
180 s.connect(new InetSocketAddress(server, port)); in doConnect()

12345