Lines Matching defs:ssc
55 private static void waitForTestResult(ServerSocketChannel ssc, boolean expectFail) throws IOException {
56 Selector sel = ssc.provider().openSelector();
63 ssc.configureBlocking(false);
64 sk = ssc.register(sel, SelectionKey.OP_ACCEPT);
70 if (sk.isAcceptable() && ((sc = ssc.accept()) != null)) {
81 ssc.configureBlocking(false);
148 ServerSocketChannel ssc = ServerSocketChannel.open();
149 ssc.socket().bind(new InetSocketAddress(0));
154 int port = ssc.socket().getLocalPort();
162 waitForTestResult(ssc, expectFail);
171 waitForTestResult(ssc, expectFail);
178 waitForTestResult(ssc, expectFail);