Home
last modified time | relevance | path

Searched refs:clientSocket (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldServerSocketTest.java75 Socket clientSocket = new Socket(); in performancePreferenceTest() local
78 clientSocket.connect(clAddress); in performancePreferenceTest()
81 assertEquals(clAddress, clientSocket.getRemoteSocketAddress()); in performancePreferenceTest()
84 clientSocket.close(); in performancePreferenceTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DServerSocketTest.java431 Socket clientSocket = new Socket(); in test_bindLjava_net_SocketAddress() local
434 clientSocket.connect(clAddress); in test_bindLjava_net_SocketAddress()
437 assertEquals(clAddress, clientSocket.getRemoteSocketAddress()); in test_bindLjava_net_SocketAddress()
440 clientSocket.close(); in test_bindLjava_net_SocketAddress()
516 Socket clientSocket = new Socket(); in test_bindLjava_net_SocketAddressI() local
517 clientSocket.connect(localAddress); in test_bindLjava_net_SocketAddressI()
520 assertTrue(clientSocket.getRemoteSocketAddress().equals(localAddress)); in test_bindLjava_net_SocketAddressI()
523 clientSocket.close(); in test_bindLjava_net_SocketAddressI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DHandshakeCompletedEventTest.java425 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); in run() local
427 InputStream istream = clientSocket.getInputStream(); in run()
434 OutputStream ostream = clientSocket.getOutputStream(); in run()
443 clientSocket.close(); in run()
DSSLSessionTest.java501 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); in run() local
503 InputStream istream = clientSocket.getInputStream(); in run()
507 OutputStream ostream = clientSocket.getOutputStream(); in run()
515 clientSocket.close(); in run()
DSSLSocketTest.java552 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); in run() local
555 InputStream stream = clientSocket.getInputStream(); in run()
568 clientSocket.close(); in run()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java717 Socket clientSocket; in openDataConnection() local
782 clientSocket = portSocket.accept(); in openDataConnection()
784 clientSocket.setSoTimeout(readTimeout); in openDataConnection()
787 clientSocket.setSoTimeout(defaultSoTimeout); in openDataConnection()
795clientSocket = sslFact.createSocket(clientSocket, serverAddr.getHostName(), serverAddr.getPort(), … in openDataConnection()
800 return clientSocket; in openDataConnection()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java491 Socket clientSocket = serverChannel.accept().socket(); in test_write_NonBlocking_RealData() local
492 OutputStream out = clientSocket.getOutputStream(); in test_write_NonBlocking_RealData()
494 clientSocket.close(); in test_write_NonBlocking_RealData()