Searched refs:connect (Results 1 - 25 of 106) sorted by relevance

12345

/libcore/ojluni/src/main/java/java/sql/
H A DDriver.java39 * driver in turn to try to connect to the target URL.
60 * of driver to connect to the given URL. This will be common, as when
61 * the JDBC driver manager is asked to connect to a given URL it passes
65 * driver to connect to the given URL but has trouble connecting to
73 * @param url the URL of the database to which to connect
81 Connection connect(String url, java.util.Properties info) method in interface:Driver
104 * enough information to connect to a database. Note that depending on
109 * @param url the URL of the database to which to connect
111 * connect open
/libcore/luni/src/test/java/libcore/java/net/customstreamhandler/http/
H A DHandler.java39 @Override public void connect() throws IOException { method in class:Handler.HandlerURLConnection
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DFileDescriptorHolderSocketImpl.java62 protected void connect(String host, int port) throws IOException { method in class:FileDescriptorHolderSocketImpl
67 protected void connect(InetAddress address, int port) throws IOException { method in class:FileDescriptorHolderSocketImpl
72 protected void connect(SocketAddress address, int timeout) throws IOException { method in class:FileDescriptorHolderSocketImpl
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarURLConnection.java89 connect();
94 connect();
119 public void connect() throws IOException { method in class:JarURLConnection
152 connect();
179 connect();
195 connect();
210 connect();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DSocketImplTest.java104 protected void connect(String host, int port) throws IOException { method in class:SocketImplTest.MockSocketImpl
107 protected void connect(InetAddress address, int port) method in class:SocketImplTest.MockSocketImpl
132 protected void connect(SocketAddress remoteAddr, int timeout) method in class:SocketImplTest.MockSocketImpl
H A DDatagramSocketTest.java152 ds.connect(inetAddress, 0);
161 ds.connect(inetAddress, 0);
172 ds.connect(localHost, ds.getLocalPort());
208 ds.connect(Inet6Address.LOOPBACK, server.getPort());
230 ds.connect(Inet6Address.LOOPBACK, s1.getPort());
239 // Validate that we can connect, then disconnect, then connect then
249 ds.connect(Inet6Address.LOOPBACK, broken.getPort());
251 ds.connect(Inet6Address.LOOPBACK, serverPortNumber);
265 // Validate that we can connect/disconnec
[all...]
H A DSocketTest.java52 socket.connect(addr);
185 // Make sure we can now connect and that connections appear to come
195 theSocket.connect(boundAddress);
279 socket.connect(new InetSocketAddress("1.2.3.4hello", 12345));
289 socket.connect(unresolved);
294 socket.connect(unresolved, 123);
310 theSocket.connect(null);
317 theSocket.connect(new UnsupportedSocketAddress());
324 theSocket.connect(new InetSocketAddress(InetAddress
331 // now validate that we get a connect exceptio
[all...]
/libcore/ojluni/src/main/java/java/util/logging/
H A DSocketHandler.java60 * specifies the target host name to connect to (no default). </li>
118 * @throws IOException if we are unable to connect to the target
127 connect();
129 System.err.println("SocketHandler: connect failed to " + host + ":" + port);
147 * @throws IOException if we are unable to connect to the target
156 connect();
159 private void connect() throws IOException { method in class:SocketHandler
/libcore/benchmarks/src/benchmarks/regression/
H A DSSLLoopbackBenchmark.java30 SSLSocket[] sockets = TestSSLSocketPair.connect(context, null, null);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DPipedInputStreamTest.java83 pis.connect(pos);
107 pis.connect(pos);
135 pis.connect(pos);
150 * java.io.PipedInputStream#connect(java.io.PipedOutputStream)
158 pis.connect(pos);
176 pis.connect(pos);
196 pis.connect(pos);
257 pis.connect(pos);
322 pos.connect(pis);
351 in.connect(ou
[all...]
H A DPipedOutputStreamTest.java106 * java.io.PipedOutputStream#connect(java.io.PipedInputStream)
111 out.connect(new PipedInputStream());
113 out.connect(null);
121 * java.io.PipedOutputStream#connect(java.io.PipedInputStream)
128 out.connect(new PipedInputStream());
129 fail("Failed to throw exception attempting connect on already connected stream");
/libcore/luni/src/test/java/libcore/java/net/
H A DDatagramSocketTest.java77 s.connect(InetAddress.getLocalHost(), port);
87 assertTrue(expected.getMessage().contains("Pending connect failure"));
95 assertTrue(expected.getMessage().contains("Pending connect failure"));
112 // DatagramSocket should "become connected" even when impl.connect() fails and throws an
120 s.connect(InetAddress.getLocalHost(), port);
129 // Unlike connect(InetAddress, int), connect(SocketAddress) can (and should) throw an
132 // connect(InetAddress, int) and this test exists to confirm it stays working.
137 s1.connect(validAddress);
144 s2.connect(validAddres
[all...]
H A DOldSocketImplFactoryTest.java137 protected void connect(String arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
141 protected void connect(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
145 protected void connect(SocketAddress arg0, int arg1) throws IOException { method in class:OldSocketImplFactoryTest.MockSocketImpl
H A DSocketTimeoutTest.java77 // #connect(SocketAddress endpoint, int timeout)
78 checkOperationTimesOut(() -> new Socket(), s -> s.connect(UNREACHABLE_ADDRESS,
81 // Setting SO_TIMEOUT should not affect connect timeout.
85 s.connect(UNREACHABLE_ADDRESS, TIMEOUT_MILLIS);
97 s.connect(ss.getLocalSocketAddress());
118 sock.connect(serverSocket.getLocalSocketAddress());
H A DOldUnixSocketTest.java44 pingClient.connect(new InetSocketAddress(
89 // Now validate that we get a interrupted exception if we try to connect
94 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
105 // Port 0 is not allowed to be used in connect() on some platforms,
H A DConcurrentCloseTest.java61 System.err.println("connect...");
62 s.connect(UNREACHABLE_ADDRESS);
63 fail("connect returned: " + s + "!");
73 System.err.println("connect (with timeout)...");
74 s.connect(UNREACHABLE_ADDRESS, 3600 * 1000);
75 fail("connect returned: " + s + "!");
85 System.err.println("connect (non-blocking)...");
87 s.connect(UNREACHABLE_ADDRESS);
91 fail("connect returned: " + s + "!");
105 s.connect(s
[all...]
H A DOldSocketTest.java134 fail("second connect should have failed with EADDRINUSE");
660 // set up server connect and then validate that we get the right
698 // set up server connect and then validate that we get the right
710 // now create one that is not connect and validate that we get the
718 // now connect and validate we get the right answer
719 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
746 theSocket.connect(serverSocket.getLocalSocketAddress());
779 theSocket.connect(serverSocket.getLocalSocketAddress());
841 // make sure we can now connect and that connections appear to come
844 theSocket.connect(serverSocke
2083 protected void connect(String arg0, int arg1) throws IOException { method in class:OldSocketTest.MockSocketImpl
2087 protected void connect(InetAddress arg0, int arg1) throws IOException { method in class:OldSocketTest.MockSocketImpl
2091 protected void connect(SocketAddress arg0, int arg1) throws IOException { method in class:OldSocketTest.MockSocketImpl
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DPipedOutputStream.java60 * @param snk The piped input stream to connect to.
64 connect(snk);
72 * @see java.io.PipedInputStream#connect(java.io.PipedOutputStream)
73 * @see java.io.PipedOutputStream#connect(java.io.PipedInputStream)
87 * src.connect(snk)</pre></blockquote>
90 * snk.connect(src)</pre></blockquote>
93 * @param snk the piped input stream to connect to.
96 public synchronized void connect(PipedInputStream snk) throws IOException { method in class:PipedOutputStream
115 * {@link #connect(java.io.PipedInputStream) unconnected},
135 * {@link #connect(jav
[all...]
H A DPipedWriter.java46 * used to do a sanity check on connect.
55 * @param snk The piped reader to connect to.
59 connect(snk);
67 * @see java.io.PipedReader#connect(java.io.PipedWriter)
68 * @see java.io.PipedWriter#connect(java.io.PipedReader)
82 * src.connect(snk)</pre></blockquote>
85 * snk.connect(src)</pre></blockquote>
88 * @param snk the piped reader to connect to.
91 public synchronized void connect(PipedReader snk) throws IOException { method in class:PipedWriter
117 * {@link #connect(jav
[all...]
H A DPipedReader.java80 * @param src the stream to connect to.
93 * @param src the stream to connect to.
101 connect(src);
107 * that it is not yet {@linkplain #connect(java.io.PipedWriter)
108 * connected}. It must be {@linkplain java.io.PipedWriter#connect(
118 * {@link #connect(java.io.PipedWriter) connected} and uses
120 * It must be {@linkplain java.io.PipedWriter#connect(
151 * <pre><code>snk.connect(src)</code> </pre>
155 * <pre><code>src.connect(snk)</code> </pre>
159 * @param src The piped writer to connect t
162 public void connect(PipedWriter src) throws IOException { method in class:PipedReader
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java352 assertTrue(this.channel1.connect(localAddr1));
366 boolean connected = channel1.connect(localAddr1);
373 // A connect() causes an implicit bind()
401 assertTrue(this.channel1.connect(localAddr1));
412 boolean connected = channel1.connect(localAddr1);
429 channel1.connect(localAddr1);
443 channel1.connect(localAddr1);
453 channel1.connect(localAddr1);
463 channel1.connect(localAddr1);
471 channel1.connect(localAddr
3761 public boolean connect(SocketAddress address) throws IOException { method in class:SocketChannelTest.MockSocketChannel
[all...]
H A DDatagramChannelTest.java301 dc.connect(datagramSocket1Address);
313 dc.connect(datagramSocket1Address);
351 s.connect(datagramSocket2Address);
369 this.channel1.connect(datagramSocket1Address);
375 this.channel1.connect(datagramSocket1Address);
384 s.connect(datagramSocket2Address);
419 // Test for connect()
423 * Test method for 'DatagramChannelImpl.connect(SocketAddress)'
434 * Test method for 'DatagramChannelImpl.connect(SocketAddress)'
442 * Test method for 'DatagramChannelImpl.connect(SocketAddres
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DClassPathURLStreamHandler.java108 // Sharing occurs if getUseCaches() is true when connect() is called (which can take place
109 // implicitly). useCachedJarFile records the state of sharing at connect() time.
115 // then call setUseCaches(false) before connect() to prevent sharing. The developer must then
140 public void connect() throws IOException { method in class:ClassPathURLStreamHandler.ClassPathURLConnection
156 connect();
173 connect();
210 connect();
/libcore/ojluni/src/main/java/java/nio/channels/
H A DSocketChannel.java44 * socket channel can be connected by invoking its {@link #connect connect}
51 * remote socket may be initiated via the {@link #connect connect} method for
106 * #connect connect} and {@link #finishConnect finishConnect} methods are
152 * method, invoking the {@link #connect(SocketAddress) connect} method upon
163 * while the connect operation is in progress
167 * while the connect operatio
389 public abstract boolean connect(SocketAddress remote) throws IOException; method in class:SocketChannel
[all...]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java88 u.connect();
121 u.connect();
141 u.connect();
159 u.connect();
175 public void connect() { method in class:URLConnectionTest.MockURLConnection
184 public void connect() throws IOException {
316 uc.connect();
328 * {@link java.net.URLConnection#connect()}
332 uc.connect();
334 uc.connect();
[all...]

Completed in 9678 milliseconds

12345