Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 7 of 7) 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.java114 try (Socket sock = new Socket(); in testSocketWriteNeverTimeouts() argument
117 sock.setSoTimeout(TIMEOUT_MILLIS); in testSocketWriteNeverTimeouts()
120 sock.setSendBufferSize(1); in testSocketWriteNeverTimeouts()
122 int actualSize = sock.getSendBufferSize() + serverSocket.getReceiveBufferSize(); in testSocketWriteNeverTimeouts()
124 sock.connect(serverSocket.getLocalSocketAddress()); in testSocketWriteNeverTimeouts()
132 sock.getOutputStream().write(new byte[actualSize + 1]); in testSocketWriteNeverTimeouts()
152 sock.close(); in testSocketWriteNeverTimeouts()
DSocketTest.java781 try(Socket sock = new Socket(host, port)) {
782 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()
DSocketChannelTest.java2814 SocketChannel sock = ssc.accept(); in test_writev() local
2824 assertTrue(sock.read(target) >=0); in test_writev()
2829 sock.close(); in test_writev()
2842 SocketChannel sock = ssc.accept(); in test_writev2() local
2861 sock.close(); in test_writev2()
2880 SocketChannel sock = ssc.accept(); in test_write$NonBlockingException() local
2901 sock.close(); in test_write$NonBlockingException()
3104 Socket sock = this.channel1.socket(); in testSocket_configureblocking() local
3107 OutputStream channelSocketOut = sock.getOutputStream(); in testSocket_configureblocking()
3148 SocketChannel sock = ssc.accept(); in test_socketChannel_write_ByteBufferII() local
[all …]