Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/util/logging/
DSocketHandler.java84 private Socket sock; field in SocketHandler
174 sock = new Socket(host, port); in connect()
175 OutputStream out = sock.getOutputStream(); in connect()
189 if (sock != null) { in close()
191 sock.close(); in close()
196 sock = null; in close()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTimeoutTest.java108 try (Socket sock = new Socket(); in testSocketWriteNeverTimeouts() argument
111 sock.setSoTimeout(TIMEOUT_MILLIS); in testSocketWriteNeverTimeouts()
114 sock.setSendBufferSize(1); in testSocketWriteNeverTimeouts()
116 int actualSize = sock.getSendBufferSize() + serverSocket.getReceiveBufferSize(); in testSocketWriteNeverTimeouts()
118 sock.connect(serverSocket.getLocalSocketAddress()); in testSocketWriteNeverTimeouts()
126 sock.getOutputStream().write(new byte[actualSize + 1]); in testSocketWriteNeverTimeouts()
146 sock.close(); in testSocketWriteNeverTimeouts()
DSocketTest.java637 try(Socket sock = new Socket(host, port)) {
638 return sock.isConnected();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionBindingListenerTest.java63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueBound() local
65 SSLSession ss = sock.getSession(); in test_valueBound()
77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueUnbound() local
79 SSLSession ss = sock.getSession(); in test_valueUnbound()
/libcore/ojluni/src/main/java/javax/net/ssl/
DHandshakeCompletedEvent.java62 public HandshakeCompletedEvent(SSLSocket sock, SSLSession s) in HandshakeCompletedEvent() argument
64 super(sock); in HandshakeCompletedEvent()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSinkChannelTest.java477 SocketChannel sock = ssc.accept(); in test_socketChannel_read_close() local
486 sock.close(); in test_socketChannel_read_close()
495 SocketChannel sock = ssc.accept(); in test_socketChannel_read_write() local
505 assertEquals(-1, sock.read(target)); in test_socketChannel_read_write()