/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | SocketTest.java | 98 Socket client = socket.accept(); 99 client.close(); 129 ClientThread client = new ClientThread(); 130 Thread clientThread = new Thread(client); 262 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); 264 client.setSoLinger(false, 100); 266 client.close(); 268 client.getOutputStream(); 346 Socket client = new Socket(); 347 client [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLSessions.java | 26 * client/server pair of SSLSession as well as an invalid SSLSession. 41 * The client side of a connected session 43 public final SSLSession client; field in class:TestSSLSessions 47 * the client and server SSLSessions. 53 SSLSession client, 57 this.client = client; 71 return new TestSSLSessions(invalid, s.server.getSession(), s.client.getSession(), s); 51 TestSSLSessions(SSLSession invalid, SSLSession server, SSLSession client, TestSSLSocketPair s) argument
|
H A D | TestSSLSocketPair.java | 29 * a pair of connected and handshaked client and server SSLSockets for 35 public final SSLSocket client; field in class:TestSSLSocketPair 39 SSLSocket client) { 42 this.client = client; 49 client.close(); 65 * Create a new connected server/client socket pair within a 75 final SSLSocket client = (SSLSocket) 92 client.setEnabledCipherSuites(clientCipherSuites); 94 client 37 TestSSLSocketPair(TestSSLContext c, SSLSocket server, SSLSocket client) argument [all...] |
H A D | TestSSLEnginePair.java | 30 * a pair of connected and handshaked client and server SSLEngines for 36 public final SSLEngine client; field in class:TestSSLEnginePair 40 SSLEngine client) { 43 this.client = client; 69 * Create a new connected server/client engine pair within a 95 SSLEngine client = c.clientContext.createSSLEngine(c.host.getHostName(), c.port); 97 client.setUseClientMode(true); 99 hooks.beforeBeginHandshake(client, server); 100 client 38 TestSSLEnginePair(TestSSLContext c, SSLEngine server, SSLEngine client) argument 139 beforeBeginHandshake(SSLEngine client, SSLEngine server) argument [all...] |
H A D | TestSSLContext.java | 72 * sessions for reuse. Instead, the client presents the server 252 public static TestSSLContext create(TestKeyStore client, TestKeyStore server) { argument 253 return createWithAdditionalKeyManagers(client, server, null, null); 261 TestKeyStore client, TestKeyStore server, 264 KeyManager[] clientKeyManagers = concat(client.keyManagers, additionalClientKeyManagers); 267 createSSLContext(protocol, clientKeyManagers, client.trustManagers); 270 return create(client.keyStore, client.storePassword, 274 client.trustManagers[0], 281 * TestSSLContext creation method that allows separate creation of client an 260 createWithAdditionalKeyManagers( TestKeyStore client, TestKeyStore server, KeyManager[] additionalClientKeyManagers, KeyManager[] additionalServerKeyManagers) argument [all...] |
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | MembershipKeyTest.java | 39 private DatagramChannel client; field in class:MembershipKeyTest 45 client = DatagramChannel.open(StandardProtocolFamily.INET) 47 client.configureBlocking(false); 50 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE, sourceAddress); 52 key = client.join(MULTICAST_ADDRESS, NETWORK_INTERFACE); 58 client.close(); 74 client.close(); 114 client.receive(buffer); 122 client.close(); 148 assertEquals(client, ke [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | X509KeyManagerImpl.java | 19 private String client = "CLIENT"; field in class:X509KeyManagerImpl 94 if (keyType.equals(client)) { 121 if (s.equals(client)) { 146 if (as.length == 1 && as[0].equals(client)) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | SelectorTest.java | 470 SocketChannel client = null; 486 client = ssc.accept(); 494 if (null != client) { 495 client.close(); 540 SocketChannel client = null; 546 client = ssc.accept(); 549 client.configureBlocking(true); 557 client.write(ByteBuffer.wrap("a".getBytes())); 582 if (null != client) { 584 client [all...] |
H A D | SocketChannelTest.java | 2194 Socket client = new Socket(InetAddress.getLocalHost(), server.socket() 2196 client.setTcpNoDelay(false); 2200 OutputStream out = client.getOutputStream(); 2218 client.close(); 2913 SocketChannel client = SocketChannel.open(); 2914 client.connect(server.socket().getLocalSocketAddress()); 2925 client.write(buffers); 2926 client.close(); 2945 SocketChannel client = SocketChannel.open(); 2946 client [all...] |
H A D | ServerSocketChannelTest.java | 685 SocketChannel client = sc.accept(); 686 assertNull(client);
|
H A D | DatagramChannelTest.java | 2390 DatagramChannel client = DatagramChannel.open(); 2394 client.send(sent, boundedAddress); 2395 assertTrue(client.socket().isBound()); 2398 client.close();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLSessionTest.java | 143 KeyStore store = client.getStore(); 154 KeyStore store = client.getStore(); 263 TestClient client; field in class:SSLSessionTest 270 client = new TestClient(true, clientKeys); 273 clientThread = new Thread(client); 284 && client.exception == null) { 296 if (client.exception != null) { 297 client.exception.printStackTrace(); 299 assertNull("client thread has a pending exception: " + client [all...] |
H A D | HandshakeCompletedEventTest.java | 269 * Defines the keystore contents for the client, JKS version. Holds just a 299 * Defines the keystore contents for the client, BKS version. Holds just a 330 * Implements the actual test case. Launches a server and a client, requires 331 * client authentication and checks the certificates afterwards (not in the 345 TestClient client = new TestClient(true, clientKeys); 348 Thread clientThread = new Thread(client); 363 // The client must have completed without an exception. 364 e = client.getException(); 376 * port, requests client authentication (if specified), reads 256 bytes 464 * Implements a test SSL socket client [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketTest.java | 67 System.out.println("client=" + test.client.getLocalPort()
|
/libcore/luni/src/test/java/libcore/libcore/net/ |
H A D | NetworkSecurityPolicyTest.java | 97 // Assert that client transmits some data when cleartext traffic is permitted. 109 // Assert that client does not transmit any data when cleartext traffic is not permitted and 124 // Assert that client transmits some data when cleartext traffic is permitted. 137 // Assert that client does not transmit any data when cleartext traffic is not permitted and 152 // Assert that client transmits some data when cleartext traffic is permitted. 164 // Assert that client does not transmit any data when cleartext traffic is not permitted and 179 // Assert that client transmits some data when cleartext traffic is permitted. 192 // Assert that client does not transmit any data when cleartext traffic is not permitted and 207 // Assert that client transmits some data when cleartext traffic is permitted. 222 // Assert that client doe [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | ConcurrentCloseTest.java | 206 // It holds on to the Socket connecting to the client so it won't be GCed. 207 // Call "close" to close both the server socket and its client connection. 210 private Socket client; field in class:ConcurrentCloseTest.SilentServer 224 client = ss.accept(); 237 client.close();
|
H A D | SocketTest.java | 448 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); 449 client.close();
|
H A D | OldSocketTest.java | 211 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort()); 212 InputStream is = client.getInputStream(); 215 client.close();
|
/libcore/ojluni/src/main/java/sun/net/ftp/ |
H A D | FtpClient.java | 44 * client, like storing or retrieving files, listing or creating directories. 45 * A typical usage would consist of connecting the client to the server, 71 * client able to be manipulated from multiple threads. 94 * Creates an instance of FtpClient. The client is not connected to any 102 * Creates an instance of {@code FtpClient}. The client is not connected to any 122 FtpClient client = create(); 124 client.connect(dest); 126 return client; 145 * data connections are established by having the client connect to the server. 148 * <I>active</I> which means the server will connect back to the client [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ScannerTest.java | 72 private SocketChannel client; field in class:ScannerTest 881 s = new Scanner(client); 936 s = new Scanner(client); 981 s = new Scanner(client); 1026 s = new Scanner(client); 2492 s = new Scanner(client); 2563 s = new Scanner(client); 2628 s = new Scanner(client); 2663 s = new Scanner(client); 5672 client [all...] |