Searched refs:sock (Results 1 – 6 of 6) 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()
108 try (Socket sock = new Socket(); in testSocketWriteNeverTimeouts() argument111 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()
637 try(Socket sock = new Socket(host, port)) {638 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()