Searched refs:sock (Results 1 – 7 of 7) sorted by relevance
84 private Socket sock; field in SocketHandler174 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()
114 try (Socket sock = new Socket(); in testSocketWriteNeverTimeouts() argument117 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()
781 try(Socket sock = new Socket(host, port)) {782 return sock.isConnected();
63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueBound() local65 SSLSession ss = sock.getSession(); in test_valueBound()77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() in test_valueUnbound() local79 SSLSession ss = sock.getSession(); in test_valueUnbound()
62 public HandshakeCompletedEvent(SSLSocket sock, SSLSession s) in HandshakeCompletedEvent() argument64 super(sock); in HandshakeCompletedEvent()
477 SocketChannel sock = ssc.accept(); in test_socketChannel_read_close() local486 sock.close(); in test_socketChannel_read_close()495 SocketChannel sock = ssc.accept(); in test_socketChannel_read_write() local505 assertEquals(-1, sock.read(target)); in test_socketChannel_read_write()
2814 SocketChannel sock = ssc.accept(); in test_writev() local2824 assertTrue(sock.read(target) >=0); in test_writev()2829 sock.close(); in test_writev()2842 SocketChannel sock = ssc.accept(); in test_writev2() local2861 sock.close(); in test_writev2()2880 SocketChannel sock = ssc.accept(); in test_write$NonBlockingException() local2901 sock.close(); in test_write$NonBlockingException()3104 Socket sock = this.channel1.socket(); in testSocket_configureblocking() local3107 OutputStream channelSocketOut = sock.getOutputStream(); in testSocket_configureblocking()3148 SocketChannel sock = ssc.accept(); in test_socketChannel_write_ByteBufferII() local[all …]