Home
last modified time | relevance | path

Searched refs:createSocket (Results 1 – 24 of 24) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
DSocketFactoryTest.java45 Socket s = sf.createSocket(); in test_createSocket()
52 msf.createSocket(); in test_createSocket()
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport); in test_createSocket_StringI()
68 sf.createSocket("1.2.3.4hello", sport); in test_createSocket_StringI()
75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]); in test_createSocket_StringI()
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort()); in test_createSocket_StringI()
89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082); in test_createSocket_StringI()
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport); in test_createSocket_InetAddressI()
106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]); in test_createSocket_InetAddressI()
113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort()); in test_createSocket_InetAddressI()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DDelegatingSocketFactory.java46 public Socket createSocket() throws IOException { in createSocket() method in DelegatingSocketFactory
47 Socket socket = mDelegate.createSocket(); in createSocket()
52 public Socket createSocket(String host, int port) throws IOException { in createSocket() method in DelegatingSocketFactory
53 Socket socket = mDelegate.createSocket(host, port); in createSocket()
58 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() method in DelegatingSocketFactory
60 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); in createSocket()
65 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() method in DelegatingSocketFactory
66 Socket socket = mDelegate.createSocket(host, port); in createSocket()
71 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() method in DelegatingSocketFactory
73 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
DURLConnectionTest.java3443 public SSLSocket createSocket(Socket s, String host, int port, boolean autoClose)
3445 return (SSLSocket) delegate.createSocket(s, host, port, autoClose);
3449 public SSLSocket createSocket() throws IOException {
3450 return (SSLSocket) delegate.createSocket();
3454 public SSLSocket createSocket(String host, int port)
3456 return (SSLSocket) delegate.createSocket(host, port);
3460 public SSLSocket createSocket(String host, int port, InetAddress localHost,
3462 return (SSLSocket) delegate.createSocket(host, port, localHost, localPort);
3466 public SSLSocket createSocket(InetAddress host, int port) throws IOException {
3467 return (SSLSocket) delegate.createSocket(host, port);
[all …]
/libcore/ojluni/src/main/java/javax/net/
DSocketFactory.java125 public Socket createSocket() throws IOException { in createSocket() method in SocketFactory
163 public abstract Socket createSocket(String host, int port) in createSocket() method in SocketFactory
195 createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() method in SocketFactory
221 public abstract Socket createSocket(InetAddress host, int port) in createSocket() method in SocketFactory
252 createSocket(InetAddress address, int port, in createSocket() method in SocketFactory
272 public Socket createSocket() { in createSocket() method in DefaultSocketFactory
276 public Socket createSocket(String host, int port) in createSocket() method in DefaultSocketFactory
282 public Socket createSocket(InetAddress address, int port) in createSocket() method in DefaultSocketFactory
288 public Socket createSocket(String host, int port, in createSocket() method in DefaultSocketFactory
295 public Socket createSocket(InetAddress address, int port, in createSocket() method in DefaultSocketFactory
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DFakeSSLSocketFactory.java40 public Socket createSocket(Socket s, String host, int port, boolean autoClose) { in createSocket() method in FakeSSLSocketFactory
45 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, in createSocket() method in FakeSSLSocketFactory
51 public Socket createSocket(InetAddress host, int port) { in createSocket() method in FakeSSLSocketFactory
56 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) { in createSocket() method in FakeSSLSocketFactory
61 public Socket createSocket(String host, int port) { in createSocket() method in FakeSSLSocketFactory
DSSLSocketFactoryTest.java111 Socket sslSocket = sf.createSocket(null, (InputStream) null, false); in test_SSLSocketFactory_createSocket_withConsumedInputStream()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DSSLSocketFactoryImpl.java17 public Socket createSocket(Socket socket, String s, int i, boolean flag) in createSocket() method in SSLSocketFactoryImpl
50 public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException { in createSocket() method in SSLSocketFactoryImpl
59 public Socket createSocket(InetAddress arg0, int arg1) throws IOException { in createSocket() method in SSLSocketFactoryImpl
68 …public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, … in createSocket() method in SSLSocketFactoryImpl
77 …public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOExcept… in createSocket() method in SSLSocketFactoryImpl
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLSocketFactory.java228 public abstract Socket createSocket(Socket s, String host,
276 public Socket createSocket(Socket s, InputStream consumed,
298 public Socket createSocket()
305 public Socket createSocket(String host, int port)
312 public Socket createSocket(Socket s, String host,
320 public Socket createSocket(InetAddress address, int port)
327 public Socket createSocket(String host, int port,
335 public Socket createSocket(InetAddress address, int port,
DSSLContextSpi.java143 return (SSLSocket)factory.createSocket(); in getDefaultSocket()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSocketFactoryTest.java73 Socket s = sf.createSocket(st, "localhost", sport, false); in test_createSocket()
77 s = sf.createSocket(st, "localhost", sport, true); in test_createSocket()
82 sf.createSocket(null, "localhost", sport, true); in test_createSocket()
89 s = sf.createSocket(new Socket(), "localhost", 1080, false); in test_createSocket()
97 s = sf.createSocket(st, "1.2.3.4hello", sport, false); in test_createSocket()
DHandshakeCompletedEventTest.java74 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_Constructor()
89 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getCipherSuite()
100 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalCertificates()
111 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getLocalPrincipal()
123 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificateChain()
146 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerCertificates()
166 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getPeerPrincipal()
177 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSession()
189 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in test_getSocket()
491 SSLSocket socket = (SSLSocket)sslContext.getSocketFactory().createSocket(); in run()
DSSLSessionBindingListenerTest.java64 .createSocket(); in test_valueBound()
78 .createSocket(); in test_valueUnbound()
DSSLSocketTest.java214 sslContext.getSocketFactory().createSocket().close(); in test_creationStressTest()
220 sslContext.getSocketFactory().createSocket().close(); in test_creationStressTest()
608 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in getSSLSocket()
612 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); in getSSLSocket()
616 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, port); in getSSLSocket()
621 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, in getSSLSocket()
629 return (SSLSocket) SSLSocketFactory.getDefault().createSocket(host, in getSSLSocket()
DSSLSessionTest.java569 SSLSocket socket = (SSLSocket)clientSslContext.getSocketFactory().createSocket(); in run()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLContext.java391 public Socket createSocket(String host, int port) in clientAuth() method in TestSSLContext
393 return set(sf.createSocket(host, port)); in clientAuth()
395 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in clientAuth() method in TestSSLContext
397 return set(sf.createSocket(host, port, localHost, localPort)); in clientAuth()
399 public Socket createSocket(InetAddress host, int port) throws IOException { in clientAuth() method in TestSSLContext
400 return set(sf.createSocket(host, port)); in clientAuth()
402 public Socket createSocket(InetAddress address, int port, in clientAuth() method in TestSSLContext
404 return set(sf.createSocket(address, port)); in clientAuth()
414 public Socket createSocket(Socket s, String host, int port, boolean autoClose) in clientAuth() method in TestSSLContext
416 return set(sf.createSocket(s, host, port, autoClose)); in clientAuth()
DTestSSLSessions.java68 SSLSocket ssl = (SSLSocket) sf.createSocket(); in create()
DSSLConfigurationAsserts.java58 try (SSLSocket sslSocket = (SSLSocket) sslSocketFactory.createSocket()) { in assertSSLSocketFactoryConfigSameAsSSLContext()
DTestSSLSocketPair.java75 context.clientContext.getSocketFactory().createSocket(context.host, context.port); in connect()
/libcore/ojluni/annotations/hiddenapi/javax/net/ssl/
DSSLSocketFactory.java55 public abstract java.net.Socket createSocket( in createSocket() method in SSLSocketFactory
60 public java.net.Socket createSocket( in createSocket() method in SSLSocketFactory
/libcore/ojluni/src/main/java/sun/net/
DNetworkClient.java162 s = createSocket(); in doConnect()
169 s = createSocket(); in doConnect()
196 protected Socket createSocket() throws IOException { in createSocket() method in NetworkClient
/libcore/benchmarks/src/benchmarks/regression/
DSSLSocketBenchmark.java83 Socket s = sf.createSocket(webSite.host, webSite.port); in time()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java692 s = sslFact.createSocket(s, dest.getHostName(), dest.getPort(), true); in openPassiveDataConnection()
795 …clientSocket = sslFact.createSocket(clientSocket, serverAddr.getHostName(), serverAddr.getPort(), … in openDataConnection()
2075 s = sslFact.createSocket(server, serverAddr.getHostName(), serverAddr.getPort(), true); in startSecureSession()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java119 Socket s = defaultSSLSF.createSocket("localhost", ss.getLocalPort()); in testGetDefaultSSLSocketFactory()
/libcore/api/
Dcurrent.txt17732 method public java.net.Socket createSocket() throws java.io.IOException;
17733 …method public abstract java.net.Socket createSocket(String, int) throws java.io.IOException, java.…
17734 …method public abstract java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws…
17735 …method public abstract java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOEx…
17736 …method public abstract java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddres…
18105 …method public abstract java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws …